On Fri, 2009-10-16 at 22:07 +0400, Sergei Shtylyov wrote:
> Hello.
> 
> Steve Chen wrote:
> 
> >>Running 2.6.10 on a DM6467 I see usleep having a minimum resolution of
> >>10ms..
> 
>     I'm not seeing this function in either recent kernels or MV's 2.6.10. 
> Perhaps you meant msleep()?
> 
> >>For DM6467, and other ARM Davinci linux implementations, 2.6.10 based
> >>specifically, how does one get the jiffies to 1ms, instead of what
> >>appears to be 10ms?
> 
> >>I believe I have HIGHRES timers enabled...
> 
> >>Anything else one needs to do to get usleep resolution 1ms instead of
> >>10ms?
> 
>     Try adding this to in include/asm-arm/arch-davinci/param.h:
> 
> #define HZ 1000
> 
> >>Scheduler config?
> > What is the patch level?  DM6467 HRT was not working correct.  There was
> > a patch that fixed the problem.
> 
>     I highly doubt that usleep() or msleep() uses clock_nanosleep(), so 
> whether HRT works or not shouldn't matter.

I was thinking about mdelay/udelay/ndelay perhaps I misunderstood.
Regardless, in the original release of dm6467 with 2.6.10 kernel, HRT
uses the same timer as the WDT which did not work too well.  There may
be other things that needs to be addressed as well.

Steve


_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to