Skip to content

Commit ec2e0f9

Browse files
Srivatsa S. Bhattorvalds
authored andcommitted
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: Srivatsa S. Bhat <[email protected]> Acked-and-Tested-by: Mikulas Patocka <[email protected]> Acked-and-Tested-by: Tobias Ulmer <[email protected]> Tested-by: John David Anglin <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 3911ff3 commit ec2e0f9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

arch/parisc/kernel/smp.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include <linux/delay.h>
3232
#include <linux/bitops.h>
3333
#include <linux/ftrace.h>
34+
#include <linux/cpu.h>
3435

3536
#include <linux/atomic.h>
3637
#include <asm/current.h>
@@ -295,8 +296,13 @@ smp_cpu_init(int cpunum)
295296

296297
printk(KERN_CRIT "CPU#%d already initialized!\n", cpunum);
297298
machine_halt();
298-
}
299+
}
300+
301+
notify_cpu_starting(cpunum);
302+
303+
ipi_call_lock();
299304
set_cpu_online(cpunum, true);
305+
ipi_call_unlock();
300306

301307
/* Initialise the idle task for this CPU */
302308
atomic_inc(&init_mm.mm_count);

0 commit comments

Comments
 (0)