]> www.infradead.org Git - users/jedix/linux-maple.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Oct 2018 07:27:28 +0000 (09:27 +0200)
commit4e43fbc8ef2598cfea7704f6e496db70fe86e6d1
tree7aaa9c40b2f92cf92a7c900774a379c15f13d7ea
parent0f6e2f4e06be4da35c1b9e52d638218bafa91e25
powerpc/lib/code-patching: refactor patch_instruction()

commit 8cf4c05712f04a405f0dacebcca8f042b391694a upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/lib/code-patching.c