ramips: fix performance counters on mt7621
[openwrt/openwrt.git] / target / linux / ramips / patches-4.3 / 0903-mt7621-fix-gic-perfcounter.patch
1 --- a/arch/mips/ralink/irq-gic.c
2 +++ b/arch/mips/ralink/irq-gic.c
3 @@ -2,6 +2,13 @@
4
5 #include <linux/of.h>
6 #include <linux/irqchip.h>
7 +#include <linux/irqchip/mips-gic.h>
8 +
9 +int get_c0_perfcount_int(void)
10 +{
11 + return gic_get_c0_perfcount_int();
12 +}
13 +EXPORT_SYMBOL_GPL(get_c0_perfcount_int);
14
15 void __init
16 arch_init_irq(void)