From: "Nish Aravamudan" <nish.aravamudan@gmail.com>
To: Mockern@yandex.ru
Cc: linux-kernel@vger.kernel.org
Subject: Re: timeout = 1 millisecond for wait_event_timeout
Date: Mon, 5 Mar 2007 10:06:56 -0800 [thread overview]
Message-ID: <29495f1d0703051006k7b4c7ad1uaa7e85cbccb96f1b@mail.gmail.com> (raw)
In-Reply-To: <45EC4C34.000001.31254@webmail11.yandex.ru>
On 3/5/07, Mockern <Mockern@yandex.ru> wrote:
> Hi,
>
> I have a question. How can I make timeout = 1 millisecond for wait_event_timeout
> function?
>
> Something like (HZ/1000)*x?
You mean in a HZ-independent way?
Use msecs_to_jiffies().
Note, that if HZ==1000, you can do wait_event-( , ,0); and you will
get as close to 1 millisecond as possible (there are no guarantees for
schedule_timeout(), the underlying function to wait_event_timeout()).
Thanks,
Nish
prev parent reply other threads:[~2007-03-05 18:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-05 16:58 Mockern
2007-03-05 18:06 ` Nish Aravamudan [this message]
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=29495f1d0703051006k7b4c7ad1uaa7e85cbccb96f1b@mail.gmail.com \
--to=nish.aravamudan@gmail.com \
--cc=Mockern@yandex.ru \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®