diff options
author | Paul Burton <paul.burton@imgtec.com> | 2015-05-24 11:11:18 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-06-21 15:52:55 -0400 |
commit | 2974a35657bf73db154c0173d3061812716f4e00 (patch) | |
tree | 98b0a2b1c968cb56fcfef63dc63507310f6502ea /arch | |
parent | 8e8261eb6a13760665da7595bfcc405193e1982d (diff) |
MIPS: JZ4740: use generic plat_irq_dispatch
Make use of the generic plat_irq_dispatch function introduced by commit
85f7cdacbb81 "MIPS: Provide a generic plat_irq_dispatch", in order to
reduce unnecessary code duplication.
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: Lars-Peter Clausen <lars@metafoo.de>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Cc: Brian Norris <computersforpeace@gmail.com>
Patchwork: https://patchwork.linux-mips.org/patch/10138/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/jz4740/irq.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/arch/mips/jz4740/irq.c b/arch/mips/jz4740/irq.c index 3ec9087540b4..a2452bb80e1d 100644 --- a/arch/mips/jz4740/irq.c +++ b/arch/mips/jz4740/irq.c | |||
@@ -27,7 +27,6 @@ | |||
27 | #include <linux/seq_file.h> | 27 | #include <linux/seq_file.h> |
28 | 28 | ||
29 | #include <asm/io.h> | 29 | #include <asm/io.h> |
30 | #include <asm/mipsregs.h> | ||
31 | 30 | ||
32 | #include <asm/mach-jz4740/base.h> | 31 | #include <asm/mach-jz4740/base.h> |
33 | #include <asm/mach-jz4740/irq.h> | 32 | #include <asm/mach-jz4740/irq.h> |
@@ -111,17 +110,6 @@ void __init arch_init_irq(void) | |||
111 | setup_irq(2, &jz4740_cascade_action); | 110 | setup_irq(2, &jz4740_cascade_action); |
112 | } | 111 | } |
113 | 112 | ||
114 | asmlinkage void plat_irq_dispatch(void) | ||
115 | { | ||
116 | unsigned int pending = read_c0_status() & read_c0_cause() & ST0_IM; | ||
117 | if (pending & STATUSF_IP2) | ||
118 | do_IRQ(2); | ||
119 | else if (pending & STATUSF_IP3) | ||
120 | do_IRQ(3); | ||
121 | else | ||
122 | spurious_interrupt(); | ||
123 | } | ||
124 | |||
125 | #ifdef CONFIG_DEBUG_FS | 113 | #ifdef CONFIG_DEBUG_FS |
126 | 114 | ||
127 | static inline void intc_seq_reg(struct seq_file *s, const char *name, | 115 | static inline void intc_seq_reg(struct seq_file *s, const char *name, |