]> 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)
commitd0cbe2cf477eb65416bc2502ed4e80c5944e52b1
treebb7f637ed13b5237114e1b8c6f5476ae19d50fef
parentf9c587f2bc2bd94054c969a346e063fc284488aa
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