mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-09 02:43:53 +08:00
build: Replace KERNEL_LOCKUP_DETECTOR with KERNEL_SOFTLOCKUP_DETECTOR
The LOCKUP_DETECTOR configuration option split into the SOFTLOCKUP_DETECTOR and HARDLOCKUP_DETECTOR configuration option some time ago. The HARDLOCKUP_DETECTOR option is only working on some architectures, but SOFTLOCKUP_DETECTOR should work everywhere. Replace KERNEL_LOCKUP_DETECTOR with KERNEL_SOFTLOCKUP_DETECTOR. LOCKUP_DETECTOR will be selected by SOFTLOCKUP_DETECTOR automatically. Fixes: b951f53fbae3 ("build: Add additional kernel debug options") Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> (cherry picked from commit d27f6e2c5d2a2315cc8fe684d117c80aa9984ca8)
This commit is contained in:
parent
0e29e05dee
commit
f11cdd3006
@ -436,34 +436,22 @@ config KERNEL_PROVE_LOCKING
|
|||||||
select KERNEL_DEBUG_KERNEL
|
select KERNEL_DEBUG_KERNEL
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config KERNEL_LOCKUP_DETECTOR
|
config KERNEL_SOFTLOCKUP_DETECTOR
|
||||||
bool "Compile the kernel with detect Hard and Soft Lockups"
|
bool "Compile the kernel with detect Soft Lockups"
|
||||||
depends on KERNEL_DEBUG_KERNEL
|
depends on KERNEL_DEBUG_KERNEL
|
||||||
help
|
help
|
||||||
Say Y here to enable the kernel to act as a watchdog to detect
|
Say Y here to enable the kernel to act as a watchdog to detect
|
||||||
hard and soft lockups.
|
soft lockups.
|
||||||
|
|
||||||
Softlockups are bugs that cause the kernel to loop in kernel
|
Softlockups are bugs that cause the kernel to loop in kernel
|
||||||
mode for more than 20 seconds, without giving other tasks a
|
mode for more than 20 seconds, without giving other tasks a
|
||||||
chance to run. The current stack trace is displayed upon
|
chance to run. The current stack trace is displayed upon
|
||||||
detection and the system will stay locked up.
|
detection and the system will stay locked up.
|
||||||
|
|
||||||
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.
|
|
||||||
|
|
||||||
The overhead should be minimal. A periodic hrtimer runs to
|
|
||||||
generate interrupts and kick the watchdog task every 4 seconds.
|
|
||||||
An NMI is generated every 10 seconds or so to check for hardlockups.
|
|
||||||
|
|
||||||
The frequency of hrtimer and NMI events and the soft and hard lockup
|
|
||||||
thresholds can be controlled through the sysctl watchdog_thresh.
|
|
||||||
|
|
||||||
config KERNEL_DETECT_HUNG_TASK
|
config KERNEL_DETECT_HUNG_TASK
|
||||||
bool "Compile the kernel with detect Hung Tasks"
|
bool "Compile the kernel with detect Hung Tasks"
|
||||||
depends on KERNEL_DEBUG_KERNEL
|
depends on KERNEL_DEBUG_KERNEL
|
||||||
default KERNEL_LOCKUP_DETECTOR
|
default KERNEL_SOFTLOCKUP_DETECTOR
|
||||||
help
|
help
|
||||||
Say Y here to enable the kernel to detect "hung tasks",
|
Say Y here to enable the kernel to detect "hung tasks",
|
||||||
which are bugs that cause the task to be stuck in
|
which are bugs that cause the task to be stuck in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user