Преглед изворни кода

[MIPS] Sibyte: pin timer interrupt to their cores.

Or strange things will happen.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle пре 17 година
родитељ
комит
07a80e4924
2 измењених фајлова са 6 додато и 0 уклоњено
  1. 3 0
      arch/mips/kernel/cevt-bcm1480.c
  2. 3 0
      arch/mips/kernel/cevt-sb1250.c

+ 3 - 0
arch/mips/kernel/cevt-bcm1480.c

@@ -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);
 }

+ 3 - 0
arch/mips/kernel/cevt-sb1250.c

@@ -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);
 }