aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2019-03-10 16:46:08 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2019-03-10 16:46:08 -0400
commit077d3dafe63cb26653f2b171fa102dbefd242fa8 (patch)
tree69f57b478c9ff6ce3b86c340ae4ebb2e27b44716 /kernel
parentdbbdf54c7206bf3f201f9ddaa5f4dd87835271cc (diff)
parent11295055526308ee71d82dc97f0a9ca2dd61c3b9 (diff)
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
Diffstat (limited to 'kernel')
-rw-r--r--kernel/watchdog.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/watchdog.c b/kernel/watchdog.c
index 977918d5d350..8fbfda94a67b 100644
--- a/kernel/watchdog.c
+++ b/kernel/watchdog.c
@@ -199,6 +199,13 @@ static int __init nosoftlockup_setup(char *str)
199} 199}
200__setup("nosoftlockup", nosoftlockup_setup); 200__setup("nosoftlockup", nosoftlockup_setup);
201 201
202static 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
202#ifdef CONFIG_SMP 209#ifdef CONFIG_SMP
203int __read_mostly sysctl_softlockup_all_cpu_backtrace; 210int __read_mostly sysctl_softlockup_all_cpu_backtrace;
204 211