diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-03-10 13:46:08 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-03-10 13:46:08 -0700 |
| commit | 077d3dafe63cb26653f2b171fa102dbefd242fa8 (patch) | |
| tree | 69f57b478c9ff6ce3b86c340ae4ebb2e27b44716 /kernel | |
| parent | Merge tag 'platform-drivers-x86-v5.1-1' of git://git.infradead.org/linux-plat... (diff) | |
| parent | watchdog/core: Add watchdog_thresh command line parameter (diff) | |
| download | linux-077d3dafe63cb26653f2b171fa102dbefd242fa8.tar.gz linux-077d3dafe63cb26653f2b171fa102dbefd242fa8.zip | |
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.c | 7 |
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) } __setup("nosoftlockup", nosoftlockup_setup); +static int __init watchdog_thresh_setup(char *str) +{ + get_option(&str, &watchdog_thresh); + return 1; +} +__setup("watchdog_thresh=", watchdog_thresh_setup); + #ifdef CONFIG_SMP int __read_mostly sysctl_softlockup_all_cpu_backtrace; |
