netifd: add flow steering mode to the packet steering script
[openwrt/openwrt.git] / target / linux / ramips / patches-4.14 / 110-mt7621-perfctr-fix.patch
1 --- a/arch/mips/ralink/irq-gic.c
2 +++ b/arch/mips/ralink/irq-gic.c
3 @@ -15,6 +15,12 @@
4
5 int get_c0_perfcount_int(void)
6 {
7 + /*
8 + * Performance counter events are routed through GIC.
9 + * Prevent them from firing on CPU IRQ7 as well
10 + */
11 + clear_c0_status(IE_SW0 << 7);
12 +
13 return gic_get_c0_perfcount_int();
14 }
15 EXPORT_SYMBOL_GPL(get_c0_perfcount_int);