summaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/files
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-07-03 15:01:40 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-07-03 15:01:40 +0000
commitd786690857dd835b4c4b7e52288c1125e14b31e8 (patch)
treeda67347feffe7f1d78d6441036bd2f5dfdcc6763 /target/linux/ramips/files
parent2aa5b50fe0d217d3b69d37642588fee83f6519d2 (diff)
ramips: set cp0_perfcount_irq for RT305X
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27377 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/files')
-rw-r--r--target/linux/ramips/files/arch/mips/ralink/rt305x/irq.c5
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 0d1a040b6..fcac2dd86 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;
}