Browse Source

i386: really stop MCEs during code patching

It's CONFIG_X86_MCE, not CONFIG_MCE.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Adrian Bunk 18 years ago
parent
commit
d2d0251f6f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      arch/i386/kernel/alternative.c

+ 2 - 2
arch/i386/kernel/alternative.c

@@ -388,7 +388,7 @@ void __init alternative_instructions(void)
 	   that might execute the to be patched code.
 	   that might execute the to be patched code.
 	   Other CPUs are not running. */
 	   Other CPUs are not running. */
 	stop_nmi();
 	stop_nmi();
-#ifdef CONFIG_MCE
+#ifdef CONFIG_X86_MCE
 	stop_mce();
 	stop_mce();
 #endif
 #endif
 
 
@@ -426,7 +426,7 @@ void __init alternative_instructions(void)
 	local_irq_restore(flags);
 	local_irq_restore(flags);
 
 
 	restart_nmi();
 	restart_nmi();
-#ifdef CONFIG_MCE
+#ifdef CONFIG_X86_MCE
 	restart_mce();
 	restart_mce();
 #endif
 #endif
 }
 }