]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/32: Clarify interrupt restores with REST_GPR macro in entry_32.S
authorRohan McLure <rmclure@linux.ibm.com>
Wed, 21 Sep 2022 06:55:45 +0000 (16:55 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 26 Sep 2022 13:00:15 +0000 (23:00 +1000)
commit2e3848a7d6d82dd0975a90439d302a94327b50b3
treee97ea30022d86c1cd880c82a2f0392a2a68f1394
parent472e4733b834d74ab99189112df5c69ba752bc62
powerpc/32: Clarify interrupt restores with REST_GPR macro in entry_32.S

Restoring the register state of the interrupted thread involves issuing
a large number of predictable loads to the kernel stack frame. Issue the
REST_GPR{,S} macros to clearly signal when this is happening, and bunch
together restores at the end of the interrupt handler where the saved
value is not consumed earlier in the handler code.

Signed-off-by: Rohan McLure <rmclure@linux.ibm.com>
Reported-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220921065605.1051927-6-rmclure@linux.ibm.com
arch/powerpc/kernel/entry_32.S