kernel/timer.c

Wojciech Kromer krom at dgt-lab.com.pl
Sat Apr 12 17:07:47 EST 2003


>
>
>hmm, why not just:
>   expire = timespec_to_jiffies(&t);
>if tv_sec and tv_sec are zero, do you need to sleep at all?
>
>    Jocke
>
>
sleep(0) could be defined as:
-schedule to next task if there is any (just call schedule() )
-sleep minimum value (1 jiffie)

default kernel (no timer patches) uses second definition,

there is  special call schedule_timeout(MAX_SCHEDULE_TIMEOUT) which also
calls schedule()




--
* * * * * * * * * * * *
* per pedes ad astra! *
* * * * * * * * * * * *    mailto:krom at dgt-lab.com.pl


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





More information about the Linuxppc-embedded mailing list