]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
hexagon/CPU hotplug: Add missing call to notify_cpu_starting()
authorSrivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Thu, 22 Mar 2012 11:28:25 +0000 (16:58 +0530)
committerRichard Kuo <rkuo@codeaurora.org>
Mon, 23 Apr 2012 17:57:11 +0000 (12:57 -0500)
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>
arch/hexagon/kernel/smp.c

index 9b44a9e2d05abcf77809cee85449d65bc78e8ef5..0672463df20ce6abc3f53b8d2531f1af5fb64e68 100644 (file)
@@ -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();