From: Johannes Weiner Date: Fri, 27 Jun 2008 13:07:21 +0000 (+0200) Subject: softlockup: fix watchdog task wakeup frequency X-Git-Tag: v2.6.27-rc1~849^2~3 X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=dd7a1e5615b1719c0fdffee1ea5a7820ac8141a6;p=linux-2.6-omap-h63xx.git softlockup: fix watchdog task wakeup frequency Updating the timestamp more often is pointless as we print the warnings only if we exceed the threshold. And the check for hung tasks relies on the last timestamp, so it will keep working correctly, too. Signed-off-by: Johannes Weiner Cc: Peter Zijlstra Signed-off-by: Ingo Molnar --- diff --git a/kernel/softlockup.c b/kernel/softlockup.c index 97977ecc317..d53ab702a7d 100644 --- a/kernel/softlockup.c +++ b/kernel/softlockup.c @@ -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: */