Skip to content

Commit 8f1f66e

Browse files
jbeulichtorvalds
authored andcommitted
lib/Kconfig.debug: adjust hard-lockup related Kconfig options
The main option should not appear in the resulting .config when the dependencies aren't met (i.e. use "depends on" rather than directly setting the default from the combined dependency values). The sub-options should depend on the main option rather than a more generic higher level one. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Don Zickus <dzickus@redhat.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 77dd3b0 commit 8f1f66e

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎lib/Kconfig.debug‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,12 +196,13 @@ config LOCKUP_DETECTOR
196196
thresholds can be controlled through the sysctl watchdog_thresh.
197197

198198
config HARDLOCKUP_DETECTOR
199-
def_bool LOCKUP_DETECTOR && PERF_EVENTS && HAVE_PERF_EVENTS_NMI && \
200-
!HAVE_NMI_WATCHDOG
199+
def_bool y
200+
depends on LOCKUP_DETECTOR && !HAVE_NMI_WATCHDOG
201+
depends on PERF_EVENTS && HAVE_PERF_EVENTS_NMI
201202

202203
config BOOTPARAM_HARDLOCKUP_PANIC
203204
bool "Panic (Reboot) On Hard Lockups"
204-
depends on LOCKUP_DETECTOR
205+
depends on HARDLOCKUP_DETECTOR
205206
help
206207
Say Y here to enable the kernel to panic on "hard lockups",
207208
which are bugs that cause the kernel to loop in kernel
@@ -212,7 +213,7 @@ config BOOTPARAM_HARDLOCKUP_PANIC
212213

213214
config BOOTPARAM_HARDLOCKUP_PANIC_VALUE
214215
int
215-
depends on LOCKUP_DETECTOR
216+
depends on HARDLOCKUP_DETECTOR
216217
range 0 1
217218
default 0 if !BOOTPARAM_HARDLOCKUP_PANIC
218219
default 1 if BOOTPARAM_HARDLOCKUP_PANIC

0 commit comments

Comments
 (0)