From 140be9f1a5915e952722813e60716a257d622f74 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 2 Jan 2016 14:48:11 +0000 Subject: [PATCH] ramips: fix performance counters on mt7621 Signed-off-by: Felix Fietkau SVN-Revision: 48069 --- .../0903-mt7621-fix-gic-perfcounter.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 target/linux/ramips/patches-4.3/0903-mt7621-fix-gic-perfcounter.patch 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 + #include ++#include ++ ++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) -- 2.30.2