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

Several fonctions have the same loop for patching instructions.

Introduce function do_patch_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/58ab36949c18f94d466fc98d6c085783b0cd474f.1669969781.git.christophe.leroy@csgroup.eu
arch/powerpc/lib/feature-fixups.c