]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9bfe8ea1525c8bf3c4093ca57d0350396f21334e
treeaa1e00c52ff5d2dc679fe35f1afce5e2c926644e
parent7e6e64d7caee60d68556fdf57ac51483afca9180
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