From: Benjamin Herrenschmidt Date: Tue, 8 Mar 2011 03:49:33 +0000 (+1100) Subject: powerpc/smp: Increase vdso_data->processorCount, not just decrease it X-Git-Tag: v3.0~1098^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aeeafbfa7a5692c68d306043878aa2dd785e5230;p=platform%2Fkernel%2Flinux-amlogic.git powerpc/smp: Increase vdso_data->processorCount, not just decrease it Signed-off-by: Benjamin Herrenschmidt --- diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c index 54faff9..cbdbb14 100644 --- a/arch/powerpc/kernel/smp.c +++ b/arch/powerpc/kernel/smp.c @@ -551,6 +551,10 @@ void __devinit start_secondary(void *unused) secondary_cpu_time_init(); +#ifdef CONFIG_PPC64 + if (system_state == SYSTEM_RUNNING) + vdso_data->processorCount++; +#endif ipi_call_lock(); notify_cpu_starting(cpu); set_cpu_online(cpu, true);