diff options
author | Andi Kleen <[email protected]> | 2008-12-15 23:33:10 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2008-12-16 23:03:02 +0100 |
commit | cf9b303e55da810255638c0b616b1a3f7eda9320 (patch) | |
tree | beb7823feed941932975f19e42e89a1c79d7a4be | |
parent | 83fd5cc6481c6b7fa8b45f8a7e0aa7120213430b (diff) |
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 <[email protected]>
Signed-off-by: Andi Kleen <[email protected]>
Tested-by: Andreas Herrmann <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
-rw-r--r-- | arch/x86/kernel/cpu/mcheck/mce_64.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/kernel/cpu/mcheck/mce_64.c b/arch/x86/kernel/cpu/mcheck/mce_64.c index 4b031a4ac856..1c838032fd37 100644 --- a/arch/x86/kernel/cpu/mcheck/mce_64.c +++ b/arch/x86/kernel/cpu/mcheck/mce_64.c @@ -510,12 +510,9 @@ static void __cpuinit mce_cpu_features(struct cpuinfo_x86 *c) */ void __cpuinit mcheck_init(struct cpuinfo_x86 *c) { - static cpumask_t mce_cpus = CPU_MASK_NONE; - mce_cpu_quirks(c); if (mce_dont_init || - cpu_test_and_set(smp_processor_id(), mce_cpus) || !mce_available(c)) return; |