]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/32s: Move KUEP locking/unlocking in C
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 12 Mar 2021 12:50:47 +0000 (12:50 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 29 Mar 2021 02:22:10 +0000 (13:22 +1100)
commit46d348ea9f96e330afbc8e818627b1ac002b7049
tree99a5ab07a508cab6ee4943fd8b8d689b7c7c8e1a
parent42c6cc852bf4a988220f06ef1afccbbc60bd4b64
powerpc/32s: Move KUEP locking/unlocking in C

This can be done in C, do it.

Unrolling the loop gains approx. 15% performance.

From now on, prepare_transfer_to_handler() is only for
interrupts from kernel.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/4eadd873927e9a73c3d1dfe2f9497353465514cf.1615552867.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/book3s/32/kup.h
arch/powerpc/include/asm/interrupt.h
arch/powerpc/include/asm/kup.h
arch/powerpc/kernel/entry_32.S
arch/powerpc/kernel/head_32.h
arch/powerpc/kernel/head_booke.h
arch/powerpc/kernel/interrupt.c
arch/powerpc/mm/book3s32/Makefile
arch/powerpc/mm/book3s32/kuep.c [new file with mode: 0644]