powerpc/code-patching: Move patch_exception() outside code-patching.c
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 2 Dec 2021 12:00:24 +0000 (13:00 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 23 Dec 2021 11:36:55 +0000 (22:36 +1100)
commit29562a9da29478834e57f81e3804e9ec7a6b350b
treee108845537f282cf5ab959932b8138025e93e181
parentff14a9c09fe91a70bfc6381809877e5a19e38cdb
powerpc/code-patching: Move patch_exception() outside code-patching.c

patch_exception() is dedicated to book3e/64 is nothing more than
a normal use of patch_branch(), so move it into a place dedicated
to book3e/64.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/0968622b98b1fb51838c35b844c42ad6609de62e.1638446239.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/code-patching.h
arch/powerpc/include/asm/exception-64e.h
arch/powerpc/include/asm/nohash/64/pgtable.h
arch/powerpc/lib/code-patching.c
arch/powerpc/mm/nohash/book3e_pgtable.c