powerpc/feature-fixups: Refactor entry fixups patching
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 2 Dec 2022 08:31:40 +0000 (09:31 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 2 Dec 2022 10:59:56 +0000 (21:59 +1100)
commit6076dc349b1c587c74c37027efff76f0fa4646f4
treec429cce89a53a6f7c7f9d958116bf22934f5101c
parent84ecfe6f38ae4ee779ebd97ee173937fff565bf9
powerpc/feature-fixups: Refactor entry fixups patching

Several fonctions have the same loop for patching instructions.

Introduce function do_patch_entry_fixups() to refactor those loops.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/79eeff7b20a98f7136da5f79b1f7c436928f27f3.1669969781.git.christophe.leroy@csgroup.eu
arch/powerpc/lib/feature-fixups.c