]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - kernel/watchdog.c
kernel/watchdog.c: fix race between proc_watchdog_thresh() and watchdog_timer_fn()
[mirror_ubuntu-artful-kernel.git] / kernel / watchdog.c
index 84c4744d19775c476addcfb87b9ee50b34f08951..18f34cf75f741e2a63db6dc6c522dfa2e03d1a54 100644 (file)
@@ -289,7 +289,7 @@ static int is_softlockup(unsigned long touch_ts)
 {
        unsigned long now = get_timestamp();
 
-       if (watchdog_enabled & SOFT_WATCHDOG_ENABLED) {
+       if ((watchdog_enabled & SOFT_WATCHDOG_ENABLED) && watchdog_thresh){
                /* Warn about unreasonable delays. */
                if (time_after(now, touch_ts + get_softlockup_thresh()))
                        return now - touch_ts;