Re: Too much error in __const_udelay() ?

From: Pavel Machek
Date: Sun Jun 06 2004 - 14:47:55 EST


Hi!

> Change 3:
>
> Asserting at least 1 loop is spent: in really small ndelay() calls to
> low-mhz timers, this might be better.
>
> return __delay(xloops ? xloops : 1);

Should not you always round up? If user asks you to delay 1900 usec,
delaying 1000 usec is a bug. If you do this, make-it-one-when-its-zero
hack should be unneccessary.
Pavel

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