diff options
Diffstat (limited to 'arch/x86/kernel/i387.c')
-rw-r--r-- | arch/x86/kernel/i387.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86/kernel/i387.c b/arch/x86/kernel/i387.c index e22a9a9dce8a..b778e17e4b01 100644 --- a/arch/x86/kernel/i387.c +++ b/arch/x86/kernel/i387.c | |||
@@ -97,7 +97,10 @@ void __cpuinit fpu_init(void) | |||
97 | 97 | ||
98 | mxcsr_feature_mask_init(); | 98 | mxcsr_feature_mask_init(); |
99 | /* clean state in init */ | 99 | /* clean state in init */ |
100 | current_thread_info()->status = 0; | 100 | if (cpu_has_xsave) |
101 | current_thread_info()->status = TS_XSAVE; | ||
102 | else | ||
103 | current_thread_info()->status = 0; | ||
101 | clear_used_math(); | 104 | clear_used_math(); |
102 | } | 105 | } |
103 | #endif /* CONFIG_X86_64 */ | 106 | #endif /* CONFIG_X86_64 */ |