Skip to content

Commit

Permalink
hexagon/CPU hotplug: Add missing call to notify_cpu_starting()
Browse files Browse the repository at this point in the history
The scheduler depends on receiving the CPU_STARTING notification, without
which we end up into a lot of trouble. So add the missing call to
notify_cpu_starting() in the bringup code.

Signed-off-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Signed-off-by: Richard Kuo <rkuo@codeaurora.org>
  • Loading branch information
Srivatsa S. Bhat authored and Richard Kuo committed Apr 23, 2012
1 parent e8e42a5 commit 57f27cc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/hexagon/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,12 @@ void __cpuinit start_secondary(void)

printk(KERN_INFO "%s cpu %d\n", __func__, current_thread_info()->cpu);

notify_cpu_starting(cpu);

ipi_call_lock();
set_cpu_online(cpu, true);
ipi_call_unlock();

local_irq_enable();

cpu_idle();
Expand Down

0 comments on commit 57f27cc

Please sign in to comment.