diff options
author | Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> | 2007-01-18 08:27:11 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-02-06 11:53:15 -0500 |
commit | 24d55728dc96d2cb8f49064e012559300eb97610 (patch) | |
tree | 35c628b130d11d319c1de7ac1175779c4a75f8b7 /arch/mips | |
parent | 70d21cdeef6331e67ed87262c894cd6601f0dccc (diff) |
[MIPS] vr41xx: Use symbolic names for IRQ numers
Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/vr41xx/common/irq.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/mips/vr41xx/common/irq.c b/arch/mips/vr41xx/common/irq.c index 697fcc260141..cba36a247e32 100644 --- a/arch/mips/vr41xx/common/irq.c +++ b/arch/mips/vr41xx/common/irq.c | |||
@@ -95,22 +95,22 @@ asmlinkage void plat_irq_dispatch(void) | |||
95 | unsigned int pending = read_c0_cause() & read_c0_status() & ST0_IM; | 95 | unsigned int pending = read_c0_cause() & read_c0_status() & ST0_IM; |
96 | 96 | ||
97 | if (pending & CAUSEF_IP7) | 97 | if (pending & CAUSEF_IP7) |
98 | do_IRQ(7); | 98 | do_IRQ(TIMER_IRQ); |
99 | else if (pending & 0x7800) { | 99 | else if (pending & 0x7800) { |
100 | if (pending & CAUSEF_IP3) | 100 | if (pending & CAUSEF_IP3) |
101 | irq_dispatch(3); | 101 | irq_dispatch(INT1_IRQ); |
102 | else if (pending & CAUSEF_IP4) | 102 | else if (pending & CAUSEF_IP4) |
103 | irq_dispatch(4); | 103 | irq_dispatch(INT2_IRQ); |
104 | else if (pending & CAUSEF_IP5) | 104 | else if (pending & CAUSEF_IP5) |
105 | irq_dispatch(5); | 105 | irq_dispatch(INT3_IRQ); |
106 | else if (pending & CAUSEF_IP6) | 106 | else if (pending & CAUSEF_IP6) |
107 | irq_dispatch(6); | 107 | irq_dispatch(INT4_IRQ); |
108 | } else if (pending & CAUSEF_IP2) | 108 | } else if (pending & CAUSEF_IP2) |
109 | irq_dispatch(2); | 109 | irq_dispatch(INT0_IRQ); |
110 | else if (pending & CAUSEF_IP0) | 110 | else if (pending & CAUSEF_IP0) |
111 | do_IRQ(0); | 111 | do_IRQ(MIPS_SOFTINT0_IRQ); |
112 | else if (pending & CAUSEF_IP1) | 112 | else if (pending & CAUSEF_IP1) |
113 | do_IRQ(1); | 113 | do_IRQ(MIPS_SOFTINT1_IRQ); |
114 | else | 114 | else |
115 | spurious_interrupt(); | 115 | spurious_interrupt(); |
116 | } | 116 | } |