Skip to contentSkip to conversation

i386 alternative.c: really stop MCEs during code patching

PATCH New Adrian Bunk 1 participant 1 message Jul 29, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i386 alternative.c: really stop MCEs during code patching

It's CONFIG_X86_MCE, not CONFIG_MCE.

---

 arch/i386/kernel/alternative.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/i386/kernel/alternative.c renamed from arch/i386/kernel/alternative.c.old +2 -2
@@ -379,7 +379,7 @@ void __init alternative_instructions(voi
 	   that might execute the to be patched code.
 	   Other CPUs are not running. */
 	stop_nmi();
-#ifdef CONFIG_MCE
+#ifdef CONFIG_X86_MCE
 	stop_mce();
 #endif
 
@@ -417,7 +417,7 @@ void __init alternative_instructions(voi
 	local_irq_restore(flags);
 
 	restart_nmi();
-#ifdef CONFIG_MCE
+#ifdef CONFIG_X86_MCE
 	restart_mce();
 #endif
 }