Yan Seiner wrote:
> Has anyone come up with a way to sleep less than 10 msec with the
> standard 2.4 kernel?
>
> both usleep and select sleep a min. of 10 msec. Any portable way to
> do so?
>
> I would guess going to the 1000 Hz kernel clock would work but I'm a
> bit leery of screwing up stability....
Have you tried nanosleep, or select() with a < 10ms timeout?
If neither method works, then I think you have to
resort to a custom driver. The TS-7300 FPGA, or an
EP9301 timer (if there is a spare one) can be setup to
generate your delay, and select() can unblock the
file descriptor.
However, even in that case, you may get stuck with the
scheduler scheduling your process in the next 10ms
time-slice.
The 2.6 kernel uses a pre-emptive approach, so its
more responsive.
I've sent you some timer tests I ran a while back on a
2.4 kernel.
Cheers,
Dave
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|