]> git.baikalelectronics.ru Git - kernel.git/commit
x86/mce: Fix CPU hotplug and suspend regression related to MCE
authorSrivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Sat, 14 Jan 2012 02:41:31 +0000 (08:11 +0530)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 14 Jan 2012 03:11:35 +0000 (19:11 -0800)
commit81df93e9fbb81c8dbeb692c36f6a016855c00be2
tree1b94ed9c9ecf887c53bb416d5e7b59694aa353f6
parentd04a29caf78cb76046df2c169c32f6f646209e01
x86/mce: Fix CPU hotplug and suspend regression related to MCE

Commit 2ac5ab37c601 ("cpu: convert 'cpu' and 'machinecheck' sysdev_class
to a regular subsystem") changed how things are dealt with in the MCE
subsystem.  Some of the things that got broken due to this are CPU
hotplug and suspend/hibernate.

MCE uses per_cpu allocations of struct device.  So, when a CPU goes
offline and comes back online, in order to ensure that we start from a
clean slate with respect to the MCE subsystem, zero out the entire
per_cpu device structure to 0 before using it.

Signed-off-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/kernel/cpu/mcheck/mce.c