aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/patches-4.14/110-mt7621-perfctr-fix.patch
Commit message (Collapse)AuthorAgeFilesLines
* ramips: fix spurious IRQ7 events when using perf on 4.14Felix Fietkau2018-02-271-0/+15
Upstream handling of MIPS CPU IRQs is rather hackish and the interrupts are being enabled unconditionally in various places because of legacy code. Performance counter events are routed both through the GIC and through legacy CPU IRQ7 events, causing spurious interrupts. Fix this by disabling IRQ7 when trying to access the performance counter IRQ. Signed-off-by: Felix Fietkau <nbd@nbd.name>