ramips: fix performance counters on mt7621
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 2 Jan 2016 14:48:11 +0000 (14:48 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 2 Jan 2016 14:48:11 +0000 (14:48 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48069 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/ramips/patches-4.3/0903-mt7621-fix-gic-perfcounter.patch [new file with mode: 0644]

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 (file)
index 0000000..bb19511
--- /dev/null
@@ -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)