From: David Brown <davidb@codeaurora.org>
To: Leo Prasath <leo.prasath@gmail.com>
Cc: linux-kernel@vger.kernel.org, Yiying Zhang <eggbaby150@gmail.com>
Subject: Re: sleep in microsecond granularity in linux
Date: Tue, 18 Jan 2011 16:11:45 -0800 [thread overview]
Message-ID: <8yak4i1sqf2.fsf@huya.qualcomm.com> (raw)
In-Reply-To: <AANLkTinjv_cLfZfNEf0LOxXAOEUNhsJ3uzPHiRVGGTWh@mail.gmail.com> (Leo Prasath's message of "Tue, 18 Jan 2011 17:33:34 -0600")
On Tue, Jan 18 2011, Leo Prasath wrote:
> Is it possible to sleep in granularity of microseconds ?
> From what i know, there is msleep() which can sleep in milliseconds
> and there is udelay() which busy waits for time in microsecond
> granularity.
> But I need to sleep ( not busy wait ) for granularity of microseconds ...
usleep_range() See Documentation/timers/timers-howto.txt for info, and
caveats.
David
--
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
prev parent reply other threads:[~2011-01-19 0:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-18 23:33 Leo Prasath
2011-01-19 0:11 ` David Brown [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=8yak4i1sqf2.fsf@huya.qualcomm.com \
--to=davidb@codeaurora.org \
--cc=eggbaby150@gmail.com \
--cc=leo.prasath@gmail.com \
--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®