]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/i386/power/cpu.c
[PATCH] uml: fix processor selection to exclude unsupported processors and features
[linux-2.6-omap-h63xx.git] / arch / i386 / power / cpu.c
index 50a0bef8c85f691bc135167e595dc5b6521a8ec0..5a1abeff033ba7ed33ecb97151aba3186aa62446 100644 (file)
@@ -7,9 +7,10 @@
  * Copyright (c) 2001 Patrick Mochel <mochel@osdl.org>
  */
 
-#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 +93,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