aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/lib/test-code-patching.c
diff options
context:
space:
mode:
authorChristophe Leroy <[email protected]>2021-12-02 12:00:21 +0000
committerMichael Ellerman <[email protected]>2021-12-23 11:35:24 +0000
commit6b21af74495b556f9d496d97d74e7a3d0ab16d7c (patch)
tree9b7a7d252f58325ace97f3783bdc8cd56898f4fe /arch/powerpc/lib/test-code-patching.c
parentpowerpc/code-patching: Fix unmap_patch_area() error handling (diff)
downloadkernel-6b21af74495b556f9d496d97d74e7a3d0ab16d7c.tar.gz
kernel-6b21af74495b556f9d496d97d74e7a3d0ab16d7c.zip
powerpc/code-patching: Reorganise do_patch_instruction() to ease error handling
Split do_patch_instruction() in two functions, the caller doing the spin locking and the callee doing everything else. And remove a few unnecessary initialisations and intermediate variables. This allows the callee to return from anywhere in the function. Signed-off-by: Christophe Leroy <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/dbc85980a0d2a935731b272e8907e8bb1d8fc8c5.1638446239.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'arch/powerpc/lib/test-code-patching.c')
0 files changed, 0 insertions, 0 deletions