diff options
Diffstat (limited to 'kernel/watchdog.c')
| -rw-r--r-- | kernel/watchdog.c | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/kernel/watchdog.c b/kernel/watchdog.c index 4a944676358..05039e348f0 100644 --- a/kernel/watchdog.c +++ b/kernel/watchdog.c @@ -517,6 +517,11 @@ int proc_dowatchdog(struct ctl_table *table, int write,  		return ret;  	set_sample_period(); +	/* +	 * Watchdog threads shouldn't be enabled if they are +	 * disabled. The 'watchdog_disabled' variable check in +	 * watchdog_*_all_cpus() function takes care of this. +	 */  	if (watchdog_enabled && watchdog_thresh)  		watchdog_enable_all_cpus();  	else | 
