aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-01-02 14:48:11 +0000
committerFelix Fietkau <nbd@openwrt.org>2016-01-02 14:48:11 +0000
commit0ca1a3bc4a0e077f45061d22b6de3ead217da627 (patch)
tree88fa145b50c4cbbaa3b83a66dae7149c5135171f /target
parentc92c2d1f77ca6cc3cbf3fcf4977f9c6bb01ef69e (diff)
downloadmaster-187ad058-0ca1a3bc4a0e077f45061d22b6de3ead217da627.tar.gz
master-187ad058-0ca1a3bc4a0e077f45061d22b6de3ead217da627.tar.bz2
master-187ad058-0ca1a3bc4a0e077f45061d22b6de3ead217da627.zip
ramips: fix performance counters on mt7621
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48069 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/ramips/patches-4.3/0903-mt7621-fix-gic-perfcounter.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/target/linux/ramips/patches-4.3/0903-mt7621-fix-gic-perfcounter.patch b/target/linux/ramips/patches-4.3/0903-mt7621-fix-gic-perfcounter.patch
new file mode 100644
index 0000000000..bb19511a11
--- /dev/null
+++ b/target/linux/ramips/patches-4.3/0903-mt7621-fix-gic-perfcounter.patch
@@ -0,0 +1,16 @@
+--- a/arch/mips/ralink/irq-gic.c
++++ b/arch/mips/ralink/irq-gic.c
+@@ -2,6 +2,13 @@
+
+ #include <linux/of.h>
+ #include <linux/irqchip.h>
++#include <linux/irqchip/mips-gic.h>
++
++int get_c0_perfcount_int(void)
++{
++ return gic_get_c0_perfcount_int();
++}
++EXPORT_SYMBOL_GPL(get_c0_perfcount_int);
+
+ void __init
+ arch_init_irq(void)