kernel/timer.c

Joakim Tjernlund Joakim.Tjernlund at lumentis.se
Sat Apr 12 22:52:11 EST 2003


> > so, anyone knows what linus.t says about adding one jiffie  to every
> > non-zero expire?
>
> I think this is a bug. It should be enough to round up to nearest jiffie.
> Ask on the linux kernel list.
>
>  Jocke

Actually, I take that back. It's not a bug. schedule_timeout(x), x > 0 will wait
somewere between x-1 and x jiffies. Therefore one must add an extra
jiffie to make sure that you don't return too early.

     Jocke

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list