]> git.baikalelectronics.ru Git - kernel.git/commit
x86: re-enable MCE on secondary CPUS after suspend/resume
authorAndi Kleen <andi@firstfloor.org>
Mon, 15 Dec 2008 22:33:10 +0000 (23:33 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 16 Dec 2008 22:03:02 +0000 (23:03 +0100)
commitbbbba4872852ec2971933156298dde4eb536a464
treebeb7823feed941932975f19e42e89a1c79d7a4be
parent3475f9ee8bf27b1129c5e1d38a5f5e7b1fcca2ca
x86: re-enable MCE on secondary CPUS after suspend/resume

Impact: fix disabled MCE after resume

Don't prevent multiple initialization of MCEs.

Back from early prehistory mcheck_init() has a reentry check. Presumably
that was needed in very old kernels to prevent it entering twice.

But as Andreas points out this prevents CPU hotplug (and therefore resume)
to correctly reinitialize MCEs when a AP boots again after being
offlined.

Just drop the check.

Reported-by: Andreas Herrmann <andreas.herrmann3@amd.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Tested-by: Andreas Herrmann <andreas.herrmann3@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/mcheck/mce_64.c