Commit ec2e0f98 authored by Srivatsa S. Bhat's avatar Srivatsa S. Bhat Committed by Linus Torvalds

parisc/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: default avatarSrivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Acked-and-Tested-by: default avatarMikulas Patocka <mpatocka@redhat.com>
Acked-and-Tested-by: default avatarTobias Ulmer <tobiasu@tmux.org>
Tested-by: default avatarJohn David Anglin <dave.anglin@bell.net>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 3911ff30
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/bitops.h> #include <linux/bitops.h>
#include <linux/ftrace.h> #include <linux/ftrace.h>
#include <linux/cpu.h>
#include <linux/atomic.h> #include <linux/atomic.h>
#include <asm/current.h> #include <asm/current.h>
...@@ -295,8 +296,13 @@ smp_cpu_init(int cpunum) ...@@ -295,8 +296,13 @@ smp_cpu_init(int cpunum)
printk(KERN_CRIT "CPU#%d already initialized!\n", cpunum); printk(KERN_CRIT "CPU#%d already initialized!\n", cpunum);
machine_halt(); machine_halt();
} }
notify_cpu_starting(cpunum);
ipi_call_lock();
set_cpu_online(cpunum, true); set_cpu_online(cpunum, true);
ipi_call_unlock();
/* Initialise the idle task for this CPU */ /* Initialise the idle task for this CPU */
atomic_inc(&init_mm.mm_count); atomic_inc(&init_mm.mm_count);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment