This makes the treshold_cpu_callback for AMD actually work and makes
the code symetric vs. teardown.
Signed-off-by: Thomas Gleixner <[email protected]>
---
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);
On Wed, 6 Jun 2012, Thomas Gleixner wrote:
> This makes the treshold_cpu_callback for AMD actually work and makes
> the code symetric vs. teardown.
Ignore that. I sent out the wrong version of this lot. Sorry for the noise
On Wed, Jun 06, 2012 at 11:38:11PM +0200, Thomas Gleixner wrote:
> On Wed, 6 Jun 2012, Thomas Gleixner wrote:
>
> > This makes the treshold_cpu_callback for AMD actually work and makes
> > the code symetric vs. teardown.
>
> Ignore that. I sent out the wrong version of this lot. Sorry for the noise
By this you mean the chunk at the end of 5/6, right?
There's a chunk touching amd_64_threshold_cpu_callback...
--
Regards/Gruss,
Boris.
Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach
GM: Alberto Bozzo
Reg: Dornach, Landkreis Muenchen
HRB Nr. 43632 WEEE Registernr: 129 19551
On Wed, 6 Jun 2012, Borislav Petkov wrote:
> On Wed, Jun 06, 2012 at 11:38:11PM +0200, Thomas Gleixner wrote:
> > On Wed, 6 Jun 2012, Thomas Gleixner wrote:
> >
> > > This makes the treshold_cpu_callback for AMD actually work and makes
> > > the code symetric vs. teardown.
> >
> > Ignore that. I sent out the wrong version of this lot. Sorry for the noise
>
> By this you mean the chunk at the end of 5/6, right?
>
> There's a chunk touching amd_64_threshold_cpu_callback...
Both 1/6 and 5/6 are wrong. That's a leftover from a previous
iteration. About to send the fixed version.