How about setting CLOCK_HZ to 1000?
I've done this on a 2.6.34 kernel and I get much better resolution.
Granted it's not as precise as the real-time kernel is supposed to be but it
might help.
--- In "Charles" <> wrote:
>
>
> OK, sorry, I was confused by your comment "... adapt clockevents patch to
> your kernel ...".
>
> BTW, AFAIK, you don't need the full real-time patch to get a more accurate
> nanosleep(); it comes automatically if HRT is available, since 2.6.16 I think.
>
> regards, ........ Charlie
>
> --- In Razvan-Ionut Stoian <razvan_ionut_stoian@>
> wrote:
> >
> > Sure, but in this case, I was referring to the real-time patch for 2.6.32
> > (that doesn't exist), not the high resolution timers patch.
> >
> > R.
> >
> > --- 1On Tue, 9/21/10, Charles <charliem_1216@> wrote:
> >
> > From: Charles <charliem_1216@>
> > Subject: [ts-7000] Re: sub 10ms sleeps/timers in Linu 2.6.29
> > To:
> > Date: Tuesday, September 21, 2010, 12:41 PM
> >
> >
> >
> >
> >
> >
> >
> > Â
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Hi --
> >
> >
> >
> > --- In Razvan-Ionut Stoian <razvan_ionut_stoian@>
> > wrote:
> >
> > >
> >
> > > Apply Matts' patches (2.6.32) , download the "clockevents"� patches
> > > and apply them.
> > > (http://groups.yahoo.com/group/ts-7000/attachments/folder/2051772589/item/list).
> >
> > >
> >
> > > Unfortunately, there is no 2.6.32 real-time patch, so if you really want
> > > this, you have to patch a 2.6.33 vanilla kernel using Matt's patches and
> > > then adapt the clockevents patch your kernel version 2.6.33.
> >
> > >
> >
> >
> >
> > Please see:
> >
> > http://tech.groups.yahoo.com/group/ts-7000/message/17024
> >
> >
> >
> > and the parent thread:
> >
> > http://tech.groups.yahoo.com/group/ts-7000/message/16963
> >
> >
> >
> > for HRT (high resolution timers) patch info and kernel configurations.
> >
> >
> >
> > regards, .......... Charlie
> >
>
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|