Skip to content

Commit

Permalink
parisc/CPU hotplug: Add missing call to notify_cpu_starting()
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Srivatsa S. Bhat authored and torvalds committed May 16, 2012
1 parent 3911ff3 commit ec2e0f9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion arch/parisc/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <linux/delay.h>
#include <linux/bitops.h>
#include <linux/ftrace.h>
#include <linux/cpu.h>

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

printk(KERN_CRIT "CPU#%d already initialized!\n", cpunum);
machine_halt();
}
}

notify_cpu_starting(cpunum);

ipi_call_lock();
set_cpu_online(cpunum, true);
ipi_call_unlock();

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

0 comments on commit ec2e0f9

Please sign in to comment.