Skip to content

Commit

Permalink
sparc64: Add missing notify_cpu_starting() call.
Browse files Browse the repository at this point in the history
Commit e545a61 ("kernel/cpu.c: create
a CPU_STARTING cpu_chain notifier") added a notify_cpu_starting()
notifier event, and hit every arch except sparc64.

Fix that missed case.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Oct 13, 2008
1 parent 4245e59 commit 82960b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/sparc64/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <linux/jiffies.h>
#include <linux/profile.h>
#include <linux/lmb.h>
#include <linux/cpu.h>

#include <asm/head.h>
#include <asm/ptrace.h>
Expand Down Expand Up @@ -115,6 +116,9 @@ void __cpuinit smp_callin(void)
atomic_inc(&init_mm.mm_count);
current->active_mm = &init_mm;

/* inform the notifiers about the new cpu */
notify_cpu_starting(cpuid);

while (!cpu_isset(cpuid, smp_commenced_mask))
rmb();

Expand Down

0 comments on commit 82960b8

Please sign in to comment.