]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86/kernel/cpu/common.c
Merge branch 'x86/cpu' into x86/xsave
[linux-2.6-omap-h63xx.git] / arch / x86 / kernel / cpu / common.c
index 0785b3c8d043434109861d8326374be04fa7e8e1..c63ec65f484c494f57827705493e6f92d783abf3 100644 (file)
@@ -739,9 +739,20 @@ void __cpuinit cpu_init(void)
        /*
         * Force FPU initialization:
         */
-       current_thread_info()->status = 0;
+       if (cpu_has_xsave)
+               current_thread_info()->status = TS_XSAVE;
+       else
+               current_thread_info()->status = 0;
        clear_used_math();
        mxcsr_feature_mask_init();
+
+       /*
+        * Boot processor to setup the FP and extended state context info.
+        */
+       if (!smp_processor_id())
+               init_thread_xstate();
+
+       xsave_init();
 }
 
 #ifdef CONFIG_HOTPLUG_CPU