[MIPS] Sibyte: pin timer interrupt to their cores.
authorRalf Baechle <ralf@linux-mips.org>
Mon, 5 Nov 2007 00:18:05 +0000 (00:18 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 15 Nov 2007 23:21:48 +0000 (23:21 +0000)
Or strange things will happen.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/cevt-bcm1480.c
arch/mips/kernel/cevt-sb1250.c

index 21e6d63eb4d191f96df5e7eb6b7a454dec39fb73..f6fcc62ade3acab447c2751c8479b1428393b9d5 100644 (file)
@@ -143,7 +143,10 @@ void __cpuinit sb1480_clockevent_init(void)
 
        action->handler = sibyte_counter_handler;
        action->flags   = IRQF_DISABLED | IRQF_PERCPU;
+       action->mask    = cpumask_of_cpu(cpu);
        action->name    = name;
        action->dev_id  = cd;
+
+       irq_set_affinity(irq, cpumask_of_cpu(cpu));
        setup_irq(irq, action);
 }
index e2029d0fc39b917227e2fc8b50c8b7d97f0732e7..194e0f726fe80618ff3022d03c9ec687966a2643 100644 (file)
@@ -142,7 +142,10 @@ void __cpuinit sb1250_clockevent_init(void)
 
        action->handler = sibyte_counter_handler;
        action->flags   = IRQF_DISABLED | IRQF_PERCPU;
+       action->mask    = cpumask_of_cpu(cpu);
        action->name    = name;
        action->dev_id  = cd;
+
+       irq_set_affinity(irq, cpumask_of_cpu(cpu));
        setup_irq(irq, action);
 }