aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/cpu/common.c')
-rw-r--r--arch/x86/kernel/cpu/common.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c
index fabbcb7020fb..6c2b9e756db2 100644
--- a/arch/x86/kernel/cpu/common.c
+++ b/arch/x86/kernel/cpu/common.c
@@ -709,7 +709,10 @@ void __cpuinit cpu_init(void)
709 /* 709 /*
710 * Force FPU initialization: 710 * Force FPU initialization:
711 */ 711 */
712 current_thread_info()->status = 0; 712 if (cpu_has_xsave)
713 current_thread_info()->status = TS_XSAVE;
714 else
715 current_thread_info()->status = 0;
713 clear_used_math(); 716 clear_used_math();
714 mxcsr_feature_mask_init(); 717 mxcsr_feature_mask_init();
715 718