X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=kernel%2Fsoftlockup.c;h=4b493f67dcb562c183258115619539f3a68cd62a;hb=aa679c36756003f1fabdb9fc6f00eb159559f7c3;hp=0d4c7898ab805dd868880e7deca2d0d69d88fc67;hpb=d6ad3e286d2c075a60b9f11075a2c55aeeeca2ad;p=safe%2Fjmp%2Flinux-2.6 diff --git a/kernel/softlockup.c b/kernel/softlockup.c index 0d4c789..4b493f6 100644 --- a/kernel/softlockup.c +++ b/kernel/softlockup.c @@ -155,11 +155,11 @@ void softlockup_tick(void) * Wake up the high-prio watchdog task twice per * threshold timespan. */ - if (now > touch_ts + softlockup_thresh/2) + if (time_after(now - softlockup_thresh/2, touch_ts)) wake_up_process(per_cpu(softlockup_watchdog, this_cpu)); /* Warn about unreasonable delays: */ - if (now <= (touch_ts + softlockup_thresh)) + if (time_before_eq(now - softlockup_thresh, touch_ts)) return; per_cpu(softlockup_print_ts, this_cpu) = touch_ts;