ramips: fix spurious IRQ7 events when using perf on 4.14