summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/fpu/context.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2021-10-13 16:55:30 +0200
committerBorislav Petkov <bp@suse.de>2021-10-20 22:26:38 +0200
commit18b3fa1ad15fa8d777ac32f117553cce1a968460 (patch)
tree1f6794959abc457627190373074f30b05dafacd1 /arch/x86/kernel/fpu/context.h
parentx86/fpu: Convert fpstate_init() to struct fpstate (diff)
downloadlinux-18b3fa1ad15fa8d777ac32f117553cce1a968460.tar.xz
linux-18b3fa1ad15fa8d777ac32f117553cce1a968460.zip
x86/fpu: Convert restore_fpregs_from_fpstate() to struct fpstate
Convert restore_fpregs_from_fpstate() and related 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.347395546@linutronix.de
Diffstat (limited to 'arch/x86/kernel/fpu/context.h')
-rw-r--r--arch/x86/kernel/fpu/context.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/fpu/context.h b/arch/x86/kernel/fpu/context.h
index e652282842c8..f8f510519688 100644
--- a/arch/x86/kernel/fpu/context.h
+++ b/arch/x86/kernel/fpu/context.h
@@ -74,7 +74,7 @@ static inline void fpregs_restore_userregs(void)
*/
mask = xfeatures_mask_restore_user() |
xfeatures_mask_supervisor();
- restore_fpregs_from_fpstate(&fpu->state, mask);
+ restore_fpregs_from_fpstate(fpu->fpstate, mask);
fpregs_activate(fpu);
fpu->last_cpu = cpu;