aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/kernel/fpu/init.c
diff options
context:
space:
mode:
authorGravatar Thomas Gleixner <tglx@linutronix.de> 2021-10-13 16:55:39 +0200
committerGravatar Borislav Petkov <bp@suse.de> 2021-10-20 23:54:26 +0200
commitc20942ce5128ef92e2c451f943ba33462ad2fbc4 (patch)
treecae46b52de8e28c8f3edd38f97f17c936c5a4fd8 /arch/x86/kernel/fpu/init.c
parentx86/fpu/signal: Convert to fpstate (diff)
downloadlinux-c20942ce5128ef92e2c451f943ba33462ad2fbc4.tar.gz
linux-c20942ce5128ef92e2c451f943ba33462ad2fbc4.tar.bz2
linux-c20942ce5128ef92e2c451f943ba33462ad2fbc4.zip
x86/fpu/core: Convert to fpstate
Convert the rest of the core code to the new register storage mechanism in preparation for dynamically sized buffers. No functional change. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://lkml.kernel.org/r/20211013145322.659456185@linutronix.de
Diffstat (limited to 'arch/x86/kernel/fpu/init.c')
-rw-r--r--arch/x86/kernel/fpu/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/fpu/init.c b/arch/x86/kernel/fpu/init.c
index 31ecbfba9ff7..b524cd053114 100644
--- a/arch/x86/kernel/fpu/init.c
+++ b/arch/x86/kernel/fpu/init.c
@@ -38,7 +38,7 @@ static void fpu__init_cpu_generic(void)
/* Flush out any pending x87 state: */
#ifdef CONFIG_MATH_EMULATION
if (!boot_cpu_has(X86_FEATURE_FPU))
- fpstate_init_soft(&current->thread.fpu.state.soft);
+ fpstate_init_soft(&current->thread.fpu.fpstate->regs.soft);
else
#endif
asm volatile ("fninit");