]> asedeno.scripts.mit.edu Git - linux.git/commit
powerpc/32: Use stmw/lmw for registers save/restore in asm
authorChristophe Leroy <christophe.leroy@c-s.fr>
Tue, 17 Apr 2018 17:08:18 +0000 (19:08 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 17 May 2018 14:09:06 +0000 (00:09 +1000)
commita1f3ae3fe8a1883c339f1bc89d1c941b3809e084
treed830fbdffa3dac41aba47c6683b3fe08413ebc7e
parent24c78586cc6798028205e12c34febf0337bcbded
powerpc/32: Use stmw/lmw for registers save/restore in asm

arch/powerpc/Makefile activates -mmultiple on BE PPC32 configs
in order to use multiple word instructions in functions entry/exit.

The patch does the same for the asm parts, for consistency.

On processors like the 8xx on which insn fetching is pretty slow,
this speeds up registers save/restore.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
[mpe: PPC32 is BE only, so drop the endian checks]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/ppc_asm.h
arch/powerpc/kernel/misc.S
arch/powerpc/kernel/ppc_save_regs.S