Re: [PATCH] softlockup: stop spurious softlockup messages due tooverflow

From: Eric Dumazet
Date: Thu Mar 18 2010 - 16:45:25 EST


Le jeudi 18 mars 2010 Ã 16:25 +0100, Ingo Molnar a Ãcrit :
> * Colin Ian King <colin.king@xxxxxxxxxxxxx> wrote:
>
> >
> > Using time_after/before:
> >
> > 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;
>
> Ok, that looks like the most readable variant, agreed?
>

Sure ! Colin please submit formally your patch :)

Thanks


--
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/