diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2021-10-15 03:16:30 +0200 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2021-10-20 15:27:28 +0200 |
commit | 9848fb96839bfd6ad4c00748842ccfd5bd3b0346 (patch) | |
tree | 406c5e4289e68531b02244e9bc4acc7e9abe4d95 /arch/x86/kernel/fpu/core.c | |
parent | cdcb6fa14e1499ff2b2a3f3e0938c7b3b7ef2cd6 (diff) | |
download | linux-9848fb96839bfd6ad4c00748842ccfd5bd3b0346.tar.gz |
x86/fpu: Move fpregs_restore_userregs() to core
Only used internally in the FPU core code.
While at it, convert to the percpu accessors which verify preemption is
disabled.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20211015011539.686806639@linutronix.de
Diffstat (limited to 'arch/x86/kernel/fpu/core.c')
-rw-r--r-- | arch/x86/kernel/fpu/core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kernel/fpu/core.c b/arch/x86/kernel/fpu/core.c index a009c82336a4..739728889b54 100644 --- a/arch/x86/kernel/fpu/core.c +++ b/arch/x86/kernel/fpu/core.c @@ -17,6 +17,7 @@ #include <linux/hardirq.h> #include <linux/pkeys.h> +#include "context.h" #include "internal.h" #include "legacy.h" #include "xstate.h" |