diff options
author | Felix Fietkau <nbd@openwrt.org> | 2016-01-02 14:48:11 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-01-02 14:48:11 +0000 |
commit | 140be9f1a5915e952722813e60716a257d622f74 (patch) | |
tree | 6f7c6e0b7558988a20a89bc1488a1f29a3ec10a6 /target/linux | |
parent | 2004f415bb1fad036fb6891ee1871cef5981d6e4 (diff) | |
download | mtk-20170518-140be9f1a5915e952722813e60716a257d622f74.zip mtk-20170518-140be9f1a5915e952722813e60716a257d622f74.tar.gz mtk-20170518-140be9f1a5915e952722813e60716a257d622f74.tar.bz2 |
ramips: fix performance counters on mt7621
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48069
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/ramips/patches-4.3/0903-mt7621-fix-gic-perfcounter.patch | 16 |
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 0000000..bb19511 --- /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) |