aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/fpu/core.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2016-10-16 07:04:34 -0400
committerIngo Molnar <mingo@kernel.org>2016-10-16 07:04:34 -0400
commit4d69f155d58d0f75c5404ea502178b1943a04755 (patch)
treefe5b7608f05f6951fce748ea1e93d942b52902bd /arch/x86/kernel/fpu/core.c
parentc474e50711aa79b7bd0ea30b44744baca5650375 (diff)
parent1001354ca34179f3db924eb66672442a173147dc (diff)
Merge tag 'v4.9-rc1' into x86/fpu, to resolve conflict
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/kernel/fpu/core.c')
-rw-r--r--arch/x86/kernel/fpu/core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/kernel/fpu/core.c b/arch/x86/kernel/fpu/core.c
index 30f11ab6c07e..52f5684405c1 100644
--- a/arch/x86/kernel/fpu/core.c
+++ b/arch/x86/kernel/fpu/core.c
@@ -12,6 +12,7 @@
12#include <asm/traps.h> 12#include <asm/traps.h>
13 13
14#include <linux/hardirq.h> 14#include <linux/hardirq.h>
15#include <linux/pkeys.h>
15 16
16#define CREATE_TRACE_POINTS 17#define CREATE_TRACE_POINTS
17#include <asm/trace/fpu.h> 18#include <asm/trace/fpu.h>
@@ -474,6 +475,9 @@ static inline void copy_init_fpstate_to_fpregs(void)
474 copy_kernel_to_fxregs(&init_fpstate.fxsave); 475 copy_kernel_to_fxregs(&init_fpstate.fxsave);
475 else 476 else
476 copy_kernel_to_fregs(&init_fpstate.fsave); 477 copy_kernel_to_fregs(&init_fpstate.fsave);
478
479 if (boot_cpu_has(X86_FEATURE_OSPKE))
480 copy_init_pkru_to_fpregs();
477} 481}
478 482
479/* 483/*