diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2021-10-13 16:55:28 +0200 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2021-10-20 22:26:34 +0200 |
commit | f83ac56acdad0815366bb541b6cc9d24f6cea2b2 (patch) | |
tree | 9888227f19c8309532cd7b4257055d516948539e /arch/x86/kernel/fpu/internal.h | |
parent | 87d0e5be0fac322f4415128def9f16a71a267a40 (diff) |
x86/fpu: Convert fpstate_init() to struct fpstate
Convert fpstate_init() 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.292157401@linutronix.de
Diffstat (limited to 'arch/x86/kernel/fpu/internal.h')
-rw-r--r-- | arch/x86/kernel/fpu/internal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/fpu/internal.h b/arch/x86/kernel/fpu/internal.h index 63bd75fe95a8..e1d8a352f12d 100644 --- a/arch/x86/kernel/fpu/internal.h +++ b/arch/x86/kernel/fpu/internal.h @@ -2,7 +2,7 @@ #ifndef __X86_KERNEL_FPU_INTERNAL_H #define __X86_KERNEL_FPU_INTERNAL_H -extern union fpregs_state init_fpstate; +extern struct fpstate init_fpstate; /* CPU feature check wrappers */ static __always_inline __pure bool use_xsave(void) @@ -25,7 +25,7 @@ static __always_inline __pure bool use_fxsr(void) extern void fpu__init_prepare_fx_sw_frame(void); /* Used in init.c */ -extern void fpstate_init_user(union fpregs_state *state); +extern void fpstate_init_user(struct fpstate *fpstate); extern void fpstate_reset(struct fpu *fpu); #endif |