[PATCH 3/3] Allow setup_irq call for VPE1 timer.

From: Anoop P
Date: Thu Nov 25 2010 - 10:06:17 EST


From: Anoop P A <anoop.pa@xxxxxxxxx>

VSMP configuration can have seperate timer interrupts for each VPE.Need to setup IRQ for VPE1 timer.

Signed-off-by: Anoop P A <anoop.pa@xxxxxxxxx>
---
arch/mips/kernel/cevt-r4k.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/arch/mips/kernel/cevt-r4k.c b/arch/mips/kernel/cevt-r4k.c
index 2f4d7a9..7eaeacd 100644
--- a/arch/mips/kernel/cevt-r4k.c
+++ b/arch/mips/kernel/cevt-r4k.c
@@ -203,9 +203,10 @@ int __cpuinit r4k_clockevent_init(void)

clockevents_register_device(cd);

+#ifndef CONFIG_MIPS_MT_SMP
if (cp0_timer_irq_installed)
return 0;
-
+#endif
cp0_timer_irq_installed = 1;

setup_irq(irq, &c0_compare_irqaction);
--
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/