On Fri, 2009-10-16 at 10:57 -0700, Paul Stuart wrote:
> We're seeing the same thing on our DM355-based system with the 2.6.10 kernel.
> Steve, can you point us to the patch you mentioned below?
> ________________________________________
> From: [email protected]
> [[email protected]] On Behalf Of Steve
> Chen [[email protected]]
> Sent: Friday, October 16, 2009 10:55 AM
> To: Roberts, Randy
> Cc: [email protected]
> Subject: Re: jiffie resolution and usleep accuracy
>
> On Fri, 2009-10-16 at 10:15 -0700, Roberts, Randy wrote:
> > Running 2.6.10 on a DM6467 I see usleep having a minimum resolution of
> > 10ms..
> >
> > 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?
> >
> > Scheduler config?
> >
>
> What is the patch level? DM6467 HRT was not working correct. There was
> a patch that fixed the problem.
>
> Regards,
>
> Steve
>
Paul,
I attached the patch below for your reference. Unfortunately, I don't
think it would help with DM355. By the way, I would discourage applying
this patch directly. MontaVista releases patches in a patch stream. If
the patches are applied out of order, you are likely to run into
problems with upgrade. Not to mention that support won't be able to
help.
Regards,
Steve
Index: linux-2.6.10/arch/arm/mach-davinci/time.c
===================================================================
--- linux-2.6.10.orig/arch/arm/mach-davinci/time.c
+++ linux-2.6.10/arch/arm/mach-davinci/time.c
@@ -348,7 +348,7 @@ void __init davinci_timer_init(void)
*/
tid_system = T1_TOP;
tid_freerun = T0_TOP;
- tid_hrt = T2_WDT;
+ tid_hrt = T0_BOT;
} else {
if (cpu_is_davinci_dm355())
davinci_system_timer.period =
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source