commit 3ed4e3252565c0644bdf954149720c6a6333f16d
parent 8e36690ae2ad7439188bc2b2319da48e6d723faf
Author: Peter Collingbourne <peter@pcc.me.uk>
Date: Sat, 23 May 2026 18:27:57 -0700
Enable CONFIG_HIGH_RES_TIMERS in the default kernel config
At least on OpenWrt One, the kernel default of
CONFIG_HIGH_RES_TIMERS=n causes slow SPI NAND access speeds. See:
https://lore.kernel.org/all/CAPQLkRit9bRH2gnSpvt60evu31T=1YNFdTFH2emS6RSsY=eDJQ@mail.gmail.com/
Since this doesn't seem to be an inherently device-specific issue,
and leaving it disabled may cause other performance problems that are
difficult to debug, enable it in the default config.
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules/kernel/default.nix b/modules/kernel/default.nix
@@ -130,6 +130,9 @@ in
# at boot time unless we disable trying to call it.
# https://lkml.org/lkml/2013/8/5/175
FW_LOADER_USER_HELPER = "n";
+
+ # SPI NAND access may be slow without this.
+ HIGH_RES_TIMERS = "y";
};
};
};