softlockup: fix watchdog task wakeup frequency
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / kernel / softlockup.c
index 97977ecc317164ab866dcb8f48495499d03892f7..d53ab702a7dbaaf9304eb9e7137f5a66138180e5 100644 (file)
@@ -130,8 +130,11 @@ void softlockup_tick(void)
 
        now = get_timestamp(this_cpu);
 
-       /* Wake up the high-prio watchdog task every second: */
-       if (now > (touch_timestamp + 1))
+       /*
+        * Wake up the high-prio watchdog task twice per
+        * threshold timespan.
+        */
+       if (now > touch_timestamp + softlockup_thresh/2)
                wake_up_process(per_cpu(watchdog_task, this_cpu));
 
        /* Warn about unreasonable delays: */