fix compares of jiffies
Mark D. Studebaker
mds at paradyne.com
Wed Nov 27 20:07:58 CET 2002
good idea,
let's fix this after the 2.7.0 release
Kyösti Mälkki wrote:
>
> I came across this in old posts, applies to several i2c drivers.
> Trivial if you know when time_before() has appeared..
>
> --- linux-2.4.20-pre6/drivers/i2c/i2c-adap-ite.c Sat Aug 3 02:39:44 2002
> +++ linux-2.4.20-pre6-jfix/drivers/i2c/i2c-adap-ite.c Wed Sep 11 13:01:41 2002
> @@ -82,7 +82,7 @@
> unsigned long j = jiffies + 10;
>
> DEB3(printk(" Write 0x%02x to 0x%x\n",(unsigned short)val, ctl&0xff));
> - DEB3({while (jiffies < j) schedule();})
> + DEB3({while (time_before(jiffies, j)) schedule();})
> outw(val,ctl);
> }
>
> --
> Kyösti Mälkki
> kmalkki at cc.hut.fi
More information about the lm-sensors
mailing list