diff options
author | Christophe Leroy <christophe.leroy@csgroup.eu> | 2023-08-15 19:42:40 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2023-08-18 17:03:14 +1000 |
commit | 7cb0094be4a5dfb3c91d285977f489d334455e19 (patch) | |
tree | 2412ea21b4e33b549ed098fef301b04e357d6448 /arch/powerpc/kernel/traps.c | |
parent | 4531f128eac356144545b833908b6ffbc0292e16 (diff) |
powerpc/32s: Cleanup the mess in __set_pte_at()
__set_pte_at() handles 3 main cases with #ifdefs plus the 'percpu'
subcase which leads to code duplication.
Rewrite the function using IS_ENABLED() to minimise the total number
of cases and remove duplicated code.
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/2322dd08217bccab25456fe8b189edf0e6a8b6dd.1692121353.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'arch/powerpc/kernel/traps.c')
0 files changed, 0 insertions, 0 deletions