]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
softlockup: fix watchdog task wakeup frequency
authorJohannes Weiner <hannes@saeurebad.de>
Tue, 1 Jul 2008 07:12:04 +0000 (09:12 +0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 1 Jul 2008 07:22:49 +0000 (09:22 +0200)
The print_timestamp can never be bigger than the touch_timestamp, at
maximum it can be equal.  And if it is, the second check for
touch_timestamp + 1 bigger print_timestamp is always true, too.

The check for equality is sufficient as we proceed in one-second-steps
and are at least one second away from the last print-out if we have
another timestamp.

Signed-off-by: Johannes Weiner <hannes@saeurebad.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/softlockup.c

index d53ab702a7dbaaf9304eb9e7137f5a66138180e5..7bd8d1aadd5d3693bd881791e1130b1f603f5bce 100644 (file)
@@ -116,11 +116,8 @@ void softlockup_tick(void)
        print_timestamp = per_cpu(print_timestamp, this_cpu);
 
        /* report at most once a second */
-       if ((print_timestamp >= touch_timestamp &&
-                       print_timestamp < (touch_timestamp + 1)) ||
-                       did_panic) {
+       if (print_timestamp == touch_timestamp || did_panic)
                return;
-       }
 
        /* do not print during early bootup: */
        if (unlikely(system_state != SYSTEM_RUNNING)) {