Skip to content

Commit

Permalink
i386: really stop MCEs during code patching
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Bunk authored and Linus Torvalds committed Aug 11, 2007
1 parent 08da5a2 commit d2d0251
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/i386/kernel/alternative.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit d2d0251

Please sign in to comment.