diff options
| -rw-r--r-- | Documentation/admin-guide/kernel-parameters.txt | 8 | ||||
| -rw-r--r-- | kernel/watchdog.c | 7 |
2 files changed, 15 insertions, 0 deletions
diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt index aa4f4cfd0491..2b8ee90bb644 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt | |||
| @@ -5078,6 +5078,14 @@ | |||
| 5078 | or other driver-specific files in the | 5078 | or other driver-specific files in the |
| 5079 | Documentation/watchdog/ directory. | 5079 | Documentation/watchdog/ directory. |
| 5080 | 5080 | ||
| 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 | |||
| 5081 | workqueue.watchdog_thresh= | 5089 | workqueue.watchdog_thresh= |
| 5082 | If CONFIG_WQ_WATCHDOG is configured, workqueue can | 5090 | If CONFIG_WQ_WATCHDOG is configured, workqueue can |
| 5083 | warn stall conditions and dump internal state to | 5091 | warn stall conditions and dump internal state to |
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 | ||
| 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 | |||
| 202 | #ifdef CONFIG_SMP | 209 | #ifdef CONFIG_SMP |
| 203 | int __read_mostly sysctl_softlockup_all_cpu_backtrace; | 210 | int __read_mostly sysctl_softlockup_all_cpu_backtrace; |
| 204 | 211 | ||
