diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2024-02-03 11:45:09 +0100 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2024-02-16 14:30:15 +0100 |
commit | 419abc4d3828813b58d047da146f519eedaa395b (patch) | |
tree | b358423efb377ffd2c050aab1ab2e41740ba44ab /arch/s390/kernel/entry.S | |
parent | s390/fpu: convert __kernel_fpu_begin()/__kernel_fpu_end() to C (diff) | |
download | linux-stable-419abc4d3828813b58d047da146f519eedaa395b.tar.xz linux-stable-419abc4d3828813b58d047da146f519eedaa395b.zip |
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>
Diffstat (limited to 'arch/s390/kernel/entry.S')
-rw-r--r-- | arch/s390/kernel/entry.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/entry.S b/arch/s390/kernel/entry.S index 01c3b2d2821d..00f2e1741501 100644 --- a/arch/s390/kernel/entry.S +++ b/arch/s390/kernel/entry.S @@ -220,7 +220,7 @@ SYM_FUNC_START(__sie64a) oi __SIE_PROG0C+3(%r14),1 # we are going into SIE now tm __SIE_PROG20+3(%r14),3 # last exit... jnz .Lsie_skip - TSTMSK __LC_CPU_FLAGS,_CIF_FPU + TSTMSK __SF_SIE_FLAGS(%r15),_TIF_FPU jo .Lsie_skip # exit if fp/vx regs changed lg %r14,__SF_SIE_CONTROL_PHYS(%r15) # get sie block phys addr BPEXIT __SF_SIE_FLAGS(%r15),_TIF_ISOLATE_BP_GUEST |