diff options
Diffstat (limited to 'arch/mips/kernel')
-rw-r--r-- | arch/mips/kernel/irq_cpu.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/mips/kernel/irq_cpu.c b/arch/mips/kernel/irq_cpu.c index ca98a9f837d4..531b11cbc096 100644 --- a/arch/mips/kernel/irq_cpu.c +++ b/arch/mips/kernel/irq_cpu.c | |||
@@ -94,6 +94,24 @@ static struct irq_chip mips_mt_cpu_irq_controller = { | |||
94 | .irq_eoi = unmask_mips_irq, | 94 | .irq_eoi = unmask_mips_irq, |
95 | }; | 95 | }; |
96 | 96 | ||
97 | asmlinkage void __weak plat_irq_dispatch(void) | ||
98 | { | ||
99 | unsigned long pending = read_c0_cause() & read_c0_status() & ST0_IM; | ||
100 | int irq; | ||
101 | |||
102 | if (!pending) { | ||
103 | spurious_interrupt(); | ||
104 | return; | ||
105 | } | ||
106 | |||
107 | pending >>= CAUSEB_IP; | ||
108 | while (pending) { | ||
109 | irq = fls(pending) - 1; | ||
110 | do_IRQ(MIPS_CPU_IRQ_BASE + irq); | ||
111 | pending &= ~BIT(irq); | ||
112 | } | ||
113 | } | ||
114 | |||
97 | static int mips_cpu_intc_map(struct irq_domain *d, unsigned int irq, | 115 | static int mips_cpu_intc_map(struct irq_domain *d, unsigned int irq, |
98 | irq_hw_number_t hw) | 116 | irq_hw_number_t hw) |
99 | { | 117 | { |