summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2010-03-19 10:28:02 +0000
committerGreg Kroah-Hartman <gregkh@suse.de>2010-04-01 16:01:51 -0700
commitf6146e2078dfefc3518cf424aaa4ace9dcb1465a (patch)
tree9749f72433e7a5322223bbccc115f0d253d120ae /kernel
parent933c45323f9767493143829debff08f4d6988562 (diff)
downloadkernel-crypto-f6146e2078dfefc3518cf424aaa4ace9dcb1465a.tar.gz
kernel-crypto-f6146e2078dfefc3518cf424aaa4ace9dcb1465a.tar.xz
kernel-crypto-f6146e2078dfefc3518cf424aaa4ace9dcb1465a.zip
softlockup: Stop spurious softlockup messages due to overflow
commit 8c2eb4805d422bdbf60ba00ff233c794d23c3c00 upstream. Ensure additions on touch_ts do not overflow. This can occur when the top 32 bits of the TSC reach 0xffffffff causing additions to touch_ts to overflow and this in turn generates spurious softlockup warnings. Signed-off-by: Colin Ian King <colin.king@canonical.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Eric Dumazet <eric.dumazet@gmail.com> LKML-Reference: <1268994482.1798.6.camel@lenovo> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/softlockup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/softlockup.c b/kernel/softlockup.c
index 0d4c7898ab8..4b493f67dcb 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;