ramips: replace mt7621s hack with upstream patch
[openwrt/staging/wigyori.git] / target / linux / ramips / patches-5.10 / 324-mt7621-perfctr-fix.patch
1 --- a/arch/mips/ralink/irq-gic.c
2 +++ b/arch/mips/ralink/irq-gic.c
3 @@ -13,6 +13,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);