Skip to content

Commit

Permalink
powerpc/smp: Increase vdso_data->processorCount, not just decrease it
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Benjamin Herrenschmidt committed Apr 1, 2011
1 parent c56e585 commit aeeafbf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/powerpc/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit aeeafbf

Please sign in to comment.