]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - arch/i386/power/cpu.c
[PATCH] Don't trigger full rebuild via CONFIG_X86_MCE
[mv-sheeva.git] / arch / i386 / power / cpu.c
index 50a0bef8c85f691bc135167e595dc5b6521a8ec0..e6517915fe3e19ebc1a74cc7c34ac6be9eb616b9 100644 (file)
@@ -10,6 +10,8 @@
 #include <linux/config.h>
 #include <linux/module.h>
 #include <linux/suspend.h>
+#include <asm/mtrr.h>
+#include <asm/mce.h>
 
 static struct saved_context saved_context;
 
@@ -92,7 +94,7 @@ void __restore_processor_state(struct saved_context *ctxt)
        write_cr4(ctxt->cr4);
        write_cr3(ctxt->cr3);
        write_cr2(ctxt->cr2);
-       write_cr2(ctxt->cr0);
+       write_cr0(ctxt->cr0);
 
        /*
         * now restore the descriptor tables to their proper values