s390/fpu: make kernel fpu context preemptible
authorHeiko Carstens <hca@linux.ibm.com>
Sat, 3 Feb 2024 10:45:12 +0000 (11:45 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Fri, 16 Feb 2024 13:30:15 +0000 (14:30 +0100)
commit4eed43de9ba0ae3af6716544408d185a152424cd
treeee2921767b33f83258559e00906400ca8b7ce84b
parentc038b984a9af1010555986d6fe32d4da9db9fc3d
s390/fpu: make kernel fpu context preemptible

Make the kernel fpu context preemptible. Add another fpu structure to the
thread_struct, and use it to save and restore the kernel fpu context if its
task uses fpu registers when it is preempted.

Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/include/asm/fpu.h
arch/s390/include/asm/lowcore.h
arch/s390/include/asm/processor.h
arch/s390/kernel/process.c