From: Wojciech Kromer <krom@dgt-lab.com.pl>
To: "Linuxppc-Embedded (E-mail)" <linuxppc-embedded@lists.linuxppc.org>
Subject: Re: kernel/timer.c
Date: Sat, 12 Apr 2003 09:07:47 +0200 [thread overview]
Message-ID: <3E97BB43.6030409@dgt-lab.com.pl> (raw)
In-Reply-To: <IGEFJKJNHJDCBKALBJLLEEPEFLAA.joakim.tjernlund@lumentis.se>
>
>
>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@dgt-lab.com.pl
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2003-04-12 7:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-11 13:17 kernel/timer.c Wojciech Kromer
2003-04-11 14:38 ` kernel/timer.c Joakim Tjernlund
2003-04-12 7:07 ` Wojciech Kromer [this message]
2003-04-12 8:29 ` kernel/timer.c Joakim Tjernlund
2003-04-12 9:32 ` kernel/timer.c Wojciech Kromer
2003-04-12 10:35 ` kernel/timer.c Joakim Tjernlund
2003-04-12 12:52 ` kernel/timer.c Joakim Tjernlund
-- strict thread matches above, loose matches on Subject: below --
2003-04-11 21:25 kernel/timer.c Darin.Johnson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3E97BB43.6030409@dgt-lab.com.pl \
--to=krom@dgt-lab.com.pl \
--cc=linuxppc-embedded@lists.linuxppc.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.