Commit d2d0251f authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds

i386: really stop MCEs during code patching

It's CONFIG_X86_MCE, not CONFIG_MCE.
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 08da5a2c
......@@ -388,7 +388,7 @@ void __init alternative_instructions(void)
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
......@@ -426,7 +426,7 @@ void __init alternative_instructions(void)
local_irq_restore(flags);
restart_nmi();
#ifdef CONFIG_MCE
#ifdef CONFIG_X86_MCE
restart_mce();
#endif
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment