On Thu, Apr 20, 2006 at 03:34:39PM +0200, Lennert Buytenhek wrote:
> Sometimes a process might end up sleeping too long (if it decides to
> sleep for 0.0001 second just moments before a timer interrupt comes in,
> and that timer interrupt decides to skip calling timer_tick()), but it
> is already the case that processes can sleep arbitrary amounts of time
> longer than what they asked for, as nanosleep(x) is documented as
> sleeping for "at least x".
I should add that implementing support for high-resolution timers
(http://lwn.net/Articles/167897/) is on my TODO list, hopefully for
2.6.18 -- this will allow sleeping sub-10ms intervals, so that you
can finally bitbang your I2C bus at 5 kHz without eating 100% CPU.
cheers,
Lennert
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|