]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/lib/code-patching: refactor patch_instruction()
authorChristophe Leroy <christophe.leroy@c-s.fr>
Fri, 24 Nov 2017 07:31:07 +0000 (08:31 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 21 Jan 2018 04:06:25 +0000 (15:06 +1100)
commit929fb2bcbdfa98823db095abc86b0a384db5b1cc
treebb7f637ed13b5237114e1b8c6f5476ae19d50fef
parentd1cc5e9719f18205bdcf9633ac712894ef344eb7
powerpc/lib/code-patching: refactor patch_instruction()

patch_instruction() uses almost the same sequence as
__patch_instruction()

This patch refactor it so that patch_instruction() uses
__patch_instruction() instead of duplicating code.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Acked-by: Balbir Singh <bsingharora@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/lib/code-patching.c