diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-03-08 14:49:33 +1100 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-04-01 15:37:36 +1100 |
commit | aeeafbfa7a5692c68d306043878aa2dd785e5230 (patch) | |
tree | c217eaab7fc94939e7332c23454c63092cd48dce /arch/powerpc/kernel/smp.c | |
parent | c56e58537d504706954a06570b4034c04e5b7500 (diff) | |
download | kernel_samsung_tuna-aeeafbfa7a5692c68d306043878aa2dd785e5230.zip kernel_samsung_tuna-aeeafbfa7a5692c68d306043878aa2dd785e5230.tar.gz kernel_samsung_tuna-aeeafbfa7a5692c68d306043878aa2dd785e5230.tar.bz2 |
powerpc/smp: Increase vdso_data->processorCount, not just decrease it
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/smp.c')
-rw-r--r-- | arch/powerpc/kernel/smp.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |