summaryrefslogtreecommitdiff
path: root/arch/hexagon/kernel/smp.c
diff options
context:
space:
mode:
authorSrivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>2012-03-22 16:58:25 +0530
committerVarun Wadekar <vwadekar@nvidia.com>2012-04-30 17:57:33 +0530
commit02add03c38d6d0ed64709b3ee9e2136524dbc26c (patch)
treec29e9c47ef3d54bc872e06270ea77bbe70a11b00 /arch/hexagon/kernel/smp.c
parentb671062a72cdbec7d7b1b20e9ca25fc6c7c8a354 (diff)
hexagon/CPU hotplug: Add missing call to notify_cpu_starting()
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>
Diffstat (limited to 'arch/hexagon/kernel/smp.c')
-rw-r--r--arch/hexagon/kernel/smp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/hexagon/kernel/smp.c b/arch/hexagon/kernel/smp.c
index 9b44a9e2d05a..0672463df20c 100644
--- a/arch/hexagon/kernel/smp.c
+++ b/arch/hexagon/kernel/smp.c
@@ -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();