path: root/arch/sparc/kernel/smp_64.c
diff options
authorPeter Zijlstra <>2011-04-05 17:23:39 +0200
committerIngo Molnar <>2011-04-14 08:52:32 +0200
commit184748cc50b2dceb8287f9fb657eda48ff8fcfe7 (patch)
treeda32494cf29e5ec9f80b17dc8590bdc450ea545a /arch/sparc/kernel/smp_64.c
parenta4c98f8bbeafee12c979c90743f6fda94f7515c7 (diff)
sched: Provide scheduler_ipi() callback in response to smp_send_reschedule()
For future rework of try_to_wake_up() we'd like to push part of that function onto the CPU the task is actually going to run on. In order to do so we need a generic callback from the existing scheduler IPI. This patch introduces such a generic callback: scheduler_ipi() and implements it as a NOP. BenH notes: PowerPC might use this IPI on offline CPUs under rare conditions! Acked-by: Russell King <> Acked-by: Martin Schwidefsky <> Acked-by: Chris Metcalf <> Acked-by: Jesper Nilsson <> Acked-by: Benjamin Herrenschmidt <> Signed-off-by: Ralf Baechle <> Reviewed-by: Frank Rowand <> Cc: Mike Galbraith <> Cc: Nick Piggin <> Cc: Linus Torvalds <> Cc: Andrew Morton <> Signed-off-by: Ingo Molnar <> Signed-off-by: Peter Zijlstra <> Link:
Diffstat (limited to 'arch/sparc/kernel/smp_64.c')
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sparc/kernel/smp_64.c b/arch/sparc/kernel/smp_64.c
index 3e94a8c23238..9478da7fdb3e 100644
--- a/arch/sparc/kernel/smp_64.c
+++ b/arch/sparc/kernel/smp_64.c
@@ -1368,6 +1368,7 @@ void smp_send_reschedule(int cpu)
void __irq_entry smp_receive_signal_client(int irq, struct pt_regs *regs)
clear_softint(1 << irq);
+ scheduler_ipi();
/* This is a nop because we capture all other cpus