Re: [PATCH v2 2/7] powerpc/85xx: add HOTPLUG_CPU support

2011-11-17 Thread Scott Wood
On Thu, Nov 17, 2011 at 05:16:09AM -0600, Li Yang-R58472 wrote: > > > >Cc: linuxppc-dev@lists.ozlabs.org; Li Yang-R58472 > >Subject: Re: [PATCH v2 2/7] powerpc/85xx: add HOTPLUG_CPU support > > > >On 11/16/2011 03:55 AM, Zhao Chenhui wrote: > >> +static vo

RE: [PATCH v2 2/7] powerpc/85xx: add HOTPLUG_CPU support

2011-11-17 Thread Li Yang-R58472
>Cc: linuxppc-dev@lists.ozlabs.org; Li Yang-R58472 >Subject: Re: [PATCH v2 2/7] powerpc/85xx: add HOTPLUG_CPU support > >On 11/16/2011 03:55 AM, Zhao Chenhui wrote: >> +static void __cpuinit smp_85xx_mach_cpu_die(void) { >> +unsigned int cpu = smp_processor_id();

Re: [PATCH v2 2/7] powerpc/85xx: add HOTPLUG_CPU support

2011-11-16 Thread Scott Wood
On 11/16/2011 03:55 AM, Zhao Chenhui wrote: > +static void __cpuinit smp_85xx_mach_cpu_die(void) > +{ > + unsigned int cpu = smp_processor_id(); > + register u32 tmp; > + > + local_irq_disable(); > + idle_task_exit(); > + generic_set_cpu_dead(cpu); > + mb(); > + > + mtsp