From: George Nychis <gnychis@cmu.edu>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: "Randy.Dunlap" <rdunlap@xenotime.net>, linux-kernel@vger.kernel.org
Subject: Re: [patch] Re: how to link to hrtimers in the kernel
Date: Mon, 06 Oct 2008 13:16:15 -0400 [thread overview]
Message-ID: <48EA47DF.2090207@cmu.edu> (raw)
In-Reply-To: <alpine.LFD.2.00.0810061849090.3166@apollo>
Thomas Gleixner wrote:
> On Mon, 6 Oct 2008, Randy.Dunlap wrote:
>> On Mon, 6 Oct 2008, George Nychis wrote:
>>
>>> Hi all,
>>>
>>> I have modified drivers/usb/core/devio.c to use hrtimer_nanosleep(), and have
>>> included linux/hrtimer.h with it.
>
> Please do not use hrtimer_nanosleep() in drivers. That's
> wrong.
>
> What do you want to achieve ?
>
I am trying to sleep at the microsecond level, which ssleep and msleep
cannot provide. I couldn't find any other nanosleep method in the kernel.
I found information by searching the net on using jiffies to accomplish
sleep periods, but that is not high enough in resolution.
I'd greatly appreciate any feedback.
Thanks!
George
next prev parent reply other threads:[~2008-10-06 17:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-06 15:41 how to link to hrtimers in the kernel George Nychis
2008-10-06 16:33 ` [patch] " Randy.Dunlap
2008-10-06 16:51 ` Thomas Gleixner
2008-10-06 17:16 ` George Nychis [this message]
2008-10-07 14:55 ` Brian Pomerantz
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=48EA47DF.2090207@cmu.edu \
--to=gnychis@cmu.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=rdunlap@xenotime.net \
--cc=tglx@linutronix.de \
/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