[PATCH] realtek: use higher priority for timer interrupts

Sander Vanheule sander at svanheule.net
Sun Feb 20 07:25:43 PST 2022


The assigned output index for the event timers was quite low, lower even
than the ethernet interrupt. This means that high network load could
preempt timer interrupts, possibly leading to all sorts of strange
behaviour.

Increase the interrupt output index of the event timers to 5, which is
the highest priority output and corresponds to the (otherwise unused)
MIPS CPU timer interrupt.

Fixes: a75b9e3ecb61 ("realtek: Adding RTL930X sub-target")
Signed-off-by: Sander Vanheule <sander at svanheule.net>
---
 target/linux/realtek/dts-5.10/rtl930x.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/realtek/dts-5.10/rtl930x.dtsi b/target/linux/realtek/dts-5.10/rtl930x.dtsi
index 12407a307313..31c021134261 100644
--- a/target/linux/realtek/dts-5.10/rtl930x.dtsi
+++ b/target/linux/realtek/dts-5.10/rtl930x.dtsi
@@ -64,7 +64,7 @@
 			#interrupt-cells = <1>;
 
 			interrupt-parent = <&intc>;
-			interrupts = <7 1>, <8 2>;
+			interrupts = <7 5>, <8 5>;
 		};
 
 		spi0: spi at 1200 {
-- 
2.35.1




More information about the openwrt-devel mailing list