--- zzzz-none-000/linux-3.18.24/arch/mips/include/asm/cevt-r4k.h 2015-10-31 20:39:51.000000000 +0000 +++ rtl96-5690pro-762/linux-3.18.24/arch/mips/include/asm/cevt-r4k.h 2024-08-14 08:36:36.000000000 +0000 @@ -41,9 +41,13 @@ * and we can't reliably determine if a counter interrupt has also * happened (!r2) then don't check for a timer interrupt. */ +#ifndef CONFIG_CPU_RLX return (cp0_perfcount_irq < 0) && perf_irq() == IRQ_HANDLED && !r2; +#else + return 0; +#endif } #endif /* __ASM_CEVT_R4K_H */