OSDN Git Service

powerpc: Don't handle ALTIVEC/SPE in ASM in _switch(). Do it in C.
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 14 May 2021 13:14:53 +0000 (13:14 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 15 Jun 2021 14:16:47 +0000 (00:16 +1000)
commit359c2ca74d2fede5c571fbf3f5ee16ba1ad98259
treeaa1e00c52ff5d2dc679fe35f1afce5e2c926644e
parent4423eff71ca6b8f2c5e0fc4cea33d8cdfe3c3740
powerpc: Don't handle ALTIVEC/SPE in ASM in _switch(). Do it in C.

_switch() saves and restores ALTIVEC and SPE status.
For altivec this is redundant with what __switch_to() does with
save_sprs() and restore_sprs() and giveup_all() before
calling _switch().

Add support for SPI in save_sprs() and restore_sprs() and
remove things from _switch().

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/8ab21fd93d6e0047aa71e6509e5e312f14b2991b.1620998075.git.christophe.leroy@csgroup.eu
arch/powerpc/kernel/asm-offsets.c
arch/powerpc/kernel/entry_32.S
arch/powerpc/kernel/process.c