mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
[amazon] Apply patch 240-irq_fix.patch directly
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19457 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -177,12 +177,11 @@ void __init arch_init_irq(void)
|
|||||||
setup_irq(i, &cascade);
|
setup_irq(i, &cascade);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = INT_NUM_IRQ0; i <= INT_NUM_IM4_IRL31; i++) {
|
for (i = INT_NUM_IRQ0; i <= INT_NUM_IM4_IRL31; i++)
|
||||||
irq_desc[i].status = IRQ_DISABLED;
|
set_irq_chip_and_handler(i, &amazon_irq_type,
|
||||||
irq_desc[i].action = 0;
|
handle_level_irq);
|
||||||
irq_desc[i].depth = 1;
|
|
||||||
set_irq_chip(i, &amazon_irq_type);
|
set_c0_status(IE_IRQ0 | IE_IRQ1 | IE_IRQ2 | IE_IRQ3 | IE_IRQ4 | IE_IRQ5);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void __cpuinit arch_fixup_c0_irqs(void)
|
void __cpuinit arch_fixup_c0_irqs(void)
|
||||||
|
|||||||
@@ -1,20 +0,0 @@
|
|||||||
--- a/arch/mips/amazon/interrupt.c
|
|
||||||
+++ b/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)
|
|
||||||
Reference in New Issue
Block a user