Skip to content

Commit

Permalink
[PATCH] x86-64: Remove code to resume machine check state of other CPUs.
Browse files Browse the repository at this point in the history
The resume code uses CPU hotplug now so at resume time
we only ever see one CPU.

Pointed out by Yu Luming.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Sep 12, 2005
1 parent b9aac10 commit 413588c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions arch/x86_64/kernel/mce.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,10 +515,12 @@ __setup("mce", mcheck_enable);
* Sysfs support
*/

/* On resume clear all MCE state. Don't want to see leftovers from the BIOS. */
/* On resume clear all MCE state. Don't want to see leftovers from the BIOS.
Only one CPU is active at this time, the others get readded later using
CPU hotplug. */
static int mce_resume(struct sys_device *dev)
{
on_each_cpu(mce_init, NULL, 1, 1);
mce_init(NULL);
return 0;
}

Expand Down

0 comments on commit 413588c

Please sign in to comment.