From: Srivatsa S. Bhat Date: Thu, 22 Mar 2012 11:28:25 +0000 (+0530) Subject: hexagon/CPU hotplug: Add missing call to notify_cpu_starting() X-Git-Tag: v3.4-rc5~37^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=57f27cca7ab59cec05adc85cef97e9b4f7d28d78;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git 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 Signed-off-by: Richard Kuo --- diff --git a/arch/hexagon/kernel/smp.c b/arch/hexagon/kernel/smp.c index 9b44a9e..0672463 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();