lkml.org 
[lkml]   [2008]   [Oct]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] Re: how to link to hrtimers in the kernel


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


\
 
 \ /
  Last update: 2008-10-06 19:19    [W:0.064 / U:0.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site