[PATCH 3/3] softlockup: fix watchdog task wakeup frequency

From: Johannes Weiner
Date: Thu Jun 26 2008 - 20:16:30 EST


Wake up the watchdog every second instead of every second. If the
current timestamp is bigger than the last touch, we are already (at
least) a second ahead.

Signed-off-by: Johannes Weiner <hannes@xxxxxxxxxxxx>
---
kernel/softlockup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- a/kernel/softlockup.c
+++ b/kernel/softlockup.c
@@ -108,7 +108,7 @@ void softlockup_tick(void)
now = get_timestamp(this_cpu);

/* Wake up the high-prio watchdog task every second: */
- if (now > (touch_timestamp + 1))
+ if (now > touch_timestamp)
wake_up_process(per_cpu(watchdog_task, this_cpu));

/* Warn about unreasonable delays: */

--

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/