]> asedeno.scripts.mit.edu Git - linux.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)
commit8cf4c05712f04a405f0dacebcca8f042b391694a
treebb7f637ed13b5237114e1b8c6f5476ae19d50fef
parent4ec591e51a4b0aedb6c7f1a8cd722aa58d7f61ba
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