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: Linus Torvalds <torvalds@linux-foundation.org>
#include <linux/sched.h>
#include <linux/profile.h>
#include <linux/smp.h>
#include <linux/sched.h>
#include <linux/profile.h>
#include <linux/smp.h>
#include <asm/tlbflush.h>
#include <asm/bitops.h>
#include <asm/processor.h>
#include <asm/tlbflush.h>
#include <asm/bitops.h>
#include <asm/processor.h>
#include "internal.h"
#ifdef CONFIG_HOTPLUG_CPU
#include "internal.h"
#ifdef CONFIG_HOTPLUG_CPU
#include <asm/cacheflush.h>
static unsigned long sleep_mode[NR_CPUS];
#include <asm/cacheflush.h>
static unsigned long sleep_mode[NR_CPUS];
cpu = smp_processor_id();
cpu = smp_processor_id();
+ notify_cpu_starting(cpu);
set_cpu_online(cpu, true);
set_cpu_online(cpu, true);
+ ipi_call_unlock();
+
+ local_irq_enable();