Skip to content

Commit 077d3da

Browse files
committed
Merge branch 'core-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull watchdog core update from Thomas Gleixner: "A single commit adding a command line parameter which allows to set the watchdog threshold on the kernel command-line, so kernels with massive debug facilities enabled won't trigger the watchdog during early boot and before the threshold can be changed via sysctl" * 'core-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: watchdog/core: Add watchdog_thresh command line parameter
2 parents dbbdf54 + 1129505 commit 077d3da

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

Documentation/admin-guide/kernel-parameters.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5078,6 +5078,14 @@
50785078
or other driver-specific files in the
50795079
Documentation/watchdog/ directory.
50805080

5081+
watchdog_thresh=
5082+
[KNL]
5083+
Set the hard lockup detector stall duration
5084+
threshold in seconds. The soft lockup detector
5085+
threshold is set to twice the value. A value of 0
5086+
disables both lockup detectors. Default is 10
5087+
seconds.
5088+
50815089
workqueue.watchdog_thresh=
50825090
If CONFIG_WQ_WATCHDOG is configured, workqueue can
50835091
warn stall conditions and dump internal state to

kernel/watchdog.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,13 @@ static int __init nosoftlockup_setup(char *str)
199199
}
200200
__setup("nosoftlockup", nosoftlockup_setup);
201201

202+
static int __init watchdog_thresh_setup(char *str)
203+
{
204+
get_option(&str, &watchdog_thresh);
205+
return 1;
206+
}
207+
__setup("watchdog_thresh=", watchdog_thresh_setup);
208+
202209
#ifdef CONFIG_SMP
203210
int __read_mostly sysctl_softlockup_all_cpu_backtrace;
204211

0 commit comments

Comments
 (0)