]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86/kernel/i387.c
x86, xsave: context switch support using xsave/xrstor
[linux-2.6-omap-h63xx.git] / arch / x86 / kernel / i387.c
index e22a9a9dce8a81a95e99c502be9d92c2a3af3e77..b778e17e4b01cde0f51f317ce79d722ba2a90a0d 100644 (file)
@@ -97,7 +97,10 @@ void __cpuinit fpu_init(void)
 
        mxcsr_feature_mask_init();
        /* clean state in init */
-       current_thread_info()->status = 0;
+       if (cpu_has_xsave)
+               current_thread_info()->status = TS_XSAVE;
+       else
+               current_thread_info()->status = 0;
        clear_used_math();
 }
 #endif /* CONFIG_X86_64 */