s390/fpu: convert FPU CIF flag to regular TIF flag
authorHeiko Carstens <hca@linux.ibm.com>
Sat, 3 Feb 2024 10:45:09 +0000 (11:45 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Fri, 16 Feb 2024 13:30:15 +0000 (14:30 +0100)
commit419abc4d3828813b58d047da146f519eedaa395b
treeb358423efb377ffd2c050aab1ab2e41740ba44ab
parent918c7cad66509c2170e38a088550fb4a525e0878
s390/fpu: convert FPU CIF flag to regular TIF flag

The FPU state, as represented by the CIF_FPU flag reflects the FPU state of
a task, not the CPU it is running on. Therefore convert the flag to a
regular TIF flag.

This removes the magic in switch_to() where a save_fpu_regs() call for the
currently (previous) running task sets the per-cpu CIF_FPU flag, which is
required to restore FPU register contents of the next task, when it returns
to user space.

Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/include/asm/entry-common.h
arch/s390/include/asm/fpu.h
arch/s390/include/asm/processor.h
arch/s390/include/asm/thread_info.h
arch/s390/kernel/entry.S
arch/s390/kernel/fpu.c
arch/s390/kernel/process.c
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/vsie.c