The #define HZ 1000 did the trick! (with no further changes
required...original CONFIG_PREEMPT_DESKTOP, etc.)

Thanks!

Randy

-----Original Message-----
From: Sergei Shtylyov [mailto:[email protected]] 
Sent: Friday, October 16, 2009 11:08 AM
To: Roberts, Randy
Cc: Steve Chen; [email protected]
Subject: Re: jiffie resolution and usleep accuracy

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.

> Regards,

> Steve

WBR, Sergei

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

Reply via email to