[openwrt/openwrt] kernel: Add CONFIG_KERNEL_HARDLOCKUP_DETECTOR
LEDE Commits
lede-commits at lists.infradead.org
Sun Mar 19 11:54:51 PDT 2023
hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/b844716158dc8060d53785cbf4ecb022ebb255a2
commit b844716158dc8060d53785cbf4ecb022ebb255a2
Author: Hauke Mehrtens <hmehrtens at maxlinear.com>
AuthorDate: Wed Mar 8 21:31:20 2023 +0100
kernel: Add CONFIG_KERNEL_HARDLOCKUP_DETECTOR
Make it possible to change the kernel configuration option
CONFIG_HARDLOCKUP_DETECTOR from OpenWrt.
Signed-off-by: Hauke Mehrtens <hmehrtens at maxlinear.com>
---
config/Config-kernel.in | 12 ++++++++++++
target/linux/generic/config-5.15 | 1 +
2 files changed, 13 insertions(+)
diff --git a/config/Config-kernel.in b/config/Config-kernel.in
index ad23b21479..c7b1864235 100644
--- a/config/Config-kernel.in
+++ b/config/Config-kernel.in
@@ -541,6 +541,18 @@ config KERNEL_SOFTLOCKUP_DETECTOR
chance to run. The current stack trace is displayed upon
detection and the system will stay locked up.
+config KERNEL_HARDLOCKUP_DETECTOR
+ bool "Compile the kernel with detect Hard Lockups"
+ depends on KERNEL_DEBUG_KERNEL
+ help
+ Say Y here to enable the kernel to act as a watchdog to detect
+ hard lockups.
+
+ Hardlockups are bugs that cause the CPU to loop in kernel mode
+ for more than 10 seconds, without letting other interrupts have a
+ chance to run. The current stack trace is displayed upon detection
+ and the system will stay locked up.
+
config KERNEL_DETECT_HUNG_TASK
bool "Compile the kernel with detect Hung Tasks"
depends on KERNEL_DEBUG_KERNEL
diff --git a/target/linux/generic/config-5.15 b/target/linux/generic/config-5.15
index eab0423878..3374c239e2 100644
--- a/target/linux/generic/config-5.15
+++ b/target/linux/generic/config-5.15
@@ -711,6 +711,7 @@ CONFIG_BLOCK=y
# CONFIG_BONDING is not set
# CONFIG_BOOKE_WDT is not set
CONFIG_BOOKE_WDT_DEFAULT_TIMEOUT=3
+# CONFIG_BOOTPARAM_HARDLOCKUP_PANIC is not set
# CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not set
# CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set
# CONFIG_BOOTTIME_TRACING is not set
More information about the lede-commits
mailing list