Messages in this thread Patch in this message | | | Date | Wed, 06 Jun 2012 21:27:12 -0000 | From | Thomas Gleixner <> | Subject | [patch 1/6] x86: mce: Create devices in CPU_UP_PREPARE |
| |
This makes the treshold_cpu_callback for AMD actually work and makes the code symetric vs. teardown.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de> --- arch/x86/kernel/cpu/mcheck/mce.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Index: tip/arch/x86/kernel/cpu/mcheck/mce.c =================================================================== --- tip.orig/arch/x86/kernel/cpu/mcheck/mce.c +++ tip/arch/x86/kernel/cpu/mcheck/mce.c @@ -2256,8 +2256,8 @@ mce_cpu_callback(struct notifier_block * struct timer_list *t = &per_cpu(mce_timer, cpu); switch (action) { - case CPU_ONLINE: - case CPU_ONLINE_FROZEN: + case CPU_UP_PREPARE: + case CPU_UP_PREPARE_FROZEN: mce_device_create(cpu); if (threshold_cpu_callback) threshold_cpu_callback(action, cpu);
| |