diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2011-07-03 15:01:40 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2011-07-03 15:01:40 +0000 |
commit | 3099ffe414412f4450b2f394613487d3478c0263 (patch) | |
tree | 7617e8b1a382cb4bee59e21caba72eb96422c601 /target/linux/ramips | |
parent | 0649dfdfb60e2667f21f647d2c4b640f9be3d8f6 (diff) | |
download | mtk-20170518-3099ffe414412f4450b2f394613487d3478c0263.zip mtk-20170518-3099ffe414412f4450b2f394613487d3478c0263.tar.gz mtk-20170518-3099ffe414412f4450b2f394613487d3478c0263.tar.bz2 |
ramips: set cp0_perfcount_irq for RT305X
SVN-Revision: 27377
Diffstat (limited to 'target/linux/ramips')
-rw-r--r-- | target/linux/ramips/files/arch/mips/ralink/rt305x/irq.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target/linux/ramips/files/arch/mips/ralink/rt305x/irq.c b/target/linux/ramips/files/arch/mips/ralink/rt305x/irq.c index 0d1a040..fcac2dd 100644 --- a/target/linux/ramips/files/arch/mips/ralink/rt305x/irq.c +++ b/target/linux/ramips/files/arch/mips/ralink/rt305x/irq.c @@ -38,6 +38,9 @@ static void rt305x_intc_irq_dispatch(void) else if (pending & RT305X_INTC_INT_UART1) do_IRQ(RT305X_INTC_IRQ_UART1); + else if (pending & RT305X_INTC_INT_PERFC) + do_IRQ(RT305X_INTC_IRQ_PERFC); + else if (pending & RT305X_INTC_INT_OTG) do_IRQ(RT305X_INTC_IRQ_OTG); @@ -74,4 +77,6 @@ void __init arch_init_irq(void) mips_cpu_irq_init(); ramips_intc_irq_init(RT305X_INTC_BASE, RT305X_CPU_IRQ_INTC, RT305X_INTC_IRQ_BASE); + + cp0_perfcount_irq = RT305X_INTC_IRQ_PERFC; } |