summaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/smp.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2008-08-06 11:21:03 +0200
committerPaul Mundt <lethal@linux-sh.org>2008-09-08 03:35:03 +0200
commit6f52707e6882eb3bc6920c3f59beb05d23d68354 (patch)
treec64ee09a4d2d6169d28daea1f3737d002ffc1402 /arch/sh/kernel/smp.c
parentsh: smp: Hook in to the generic IPI handler for SH-X3 SMP. (diff)
downloadlinux-6f52707e6882eb3bc6920c3f59beb05d23d68354.tar.xz
linux-6f52707e6882eb3bc6920c3f59beb05d23d68354.zip
sh: smp: Hook up a timer IPI stub.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/smp.c')
-rw-r--r--arch/sh/kernel/smp.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/sh/kernel/smp.c b/arch/sh/kernel/smp.c
index ebfdd364544f..9cb3734dbd49 100644
--- a/arch/sh/kernel/smp.c
+++ b/arch/sh/kernel/smp.c
@@ -184,6 +184,21 @@ void arch_send_call_function_single_ipi(int cpu)
plat_send_ipi(cpu, SMP_MSG_FUNCTION_SINGLE);
}
+void smp_timer_broadcast(cpumask_t mask)
+{
+ int cpu;
+
+ for_each_cpu_mask(cpu, mask)
+ plat_send_ipi(cpu, SMP_MSG_TIMER);
+}
+
+static void ipi_timer(void)
+{
+ irq_enter();
+ /* XXX ... */
+ irq_exit();
+}
+
void smp_message_recv(unsigned int msg)
{
switch (msg) {
@@ -195,6 +210,9 @@ void smp_message_recv(unsigned int msg)
case SMP_MSG_FUNCTION_SINGLE:
generic_smp_call_function_single_interrupt();
break;
+ case SMP_MSG_TIMER:
+ ipi_timer();
+ break;
default:
printk(KERN_WARNING "SMP %d: %s(): unknown IPI %d\n",
smp_processor_id(), __func__, msg);