summaryrefslogtreecommitdiff
path: root/target/linux/amazon/files
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2010-01-31 15:09:48 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2010-01-31 15:09:48 +0000
commit4d1bfc37607ebbd9842c2555bd4ded9c0c231649 (patch)
tree96175a1e96a2861c8abc7f33b09d93b5dad7a2e5 /target/linux/amazon/files
parentff2cfb00ef46e838f47334613d6699cf2132f290 (diff)
downloadmtk-20170518-4d1bfc37607ebbd9842c2555bd4ded9c0c231649.zip
mtk-20170518-4d1bfc37607ebbd9842c2555bd4ded9c0c231649.tar.gz
mtk-20170518-4d1bfc37607ebbd9842c2555bd4ded9c0c231649.tar.bz2
Apply patch 240-irq_fix.patch directly
SVN-Revision: 19457
Diffstat (limited to 'target/linux/amazon/files')
-rw-r--r--target/linux/amazon/files/arch/mips/amazon/interrupt.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/target/linux/amazon/files/arch/mips/amazon/interrupt.c b/target/linux/amazon/files/arch/mips/amazon/interrupt.c
index 17980fb..4746f12 100644
--- a/target/linux/amazon/files/arch/mips/amazon/interrupt.c
+++ b/target/linux/amazon/files/arch/mips/amazon/interrupt.c
@@ -177,12 +177,11 @@ void __init arch_init_irq(void)
setup_irq(i, &cascade);
}
- for (i = INT_NUM_IRQ0; i <= INT_NUM_IM4_IRL31; i++) {
- irq_desc[i].status = IRQ_DISABLED;
- irq_desc[i].action = 0;
- irq_desc[i].depth = 1;
- set_irq_chip(i, &amazon_irq_type);
- }
+ for (i = INT_NUM_IRQ0; i <= INT_NUM_IM4_IRL31; i++)
+ set_irq_chip_and_handler(i, &amazon_irq_type,
+ handle_level_irq);
+
+ set_c0_status(IE_IRQ0 | IE_IRQ1 | IE_IRQ2 | IE_IRQ3 | IE_IRQ4 | IE_IRQ5);
}
void __cpuinit arch_fixup_c0_irqs(void)