]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86/power/cpu_32.c
Merge branch 'x86/cpu' into x86/xsave
[linux-2.6-omap-h63xx.git] / arch / x86 / power / cpu_32.c
index d3e083dea7202c8b5c82e1d7378d947f9f2d42a3..274d06082f4851bfcf71c621f7a62db447e54876 100644 (file)
@@ -11,6 +11,7 @@
 #include <linux/suspend.h>
 #include <asm/mtrr.h>
 #include <asm/mce.h>
+#include <asm/xcr.h>
 
 static struct saved_context saved_context;
 
@@ -126,6 +127,12 @@ static void __restore_processor_state(struct saved_context *ctxt)
        if (boot_cpu_has(X86_FEATURE_SEP))
                enable_sep_cpu();
 
+       /*
+        * restore XCR0 for xsave capable cpu's.
+        */
+       if (cpu_has_xsave)
+               xsetbv(XCR_XFEATURE_ENABLED_MASK, pcntxt_mask);
+
        fix_processor_context();
        do_fpu_end();
        mtrr_ap_init();