[RFC PATCHv2 14/20] ARM: omap4: dynamically register local timersetup function

Santosh Shilimkar santosh.shilimkar at ti.com
Thu Mar 17 06:12:02 EDT 2011


> -----Original Message-----
> From: Marc Zyngier [mailto:Marc.Zyngier at arm.com]
> Sent: Wednesday, March 16, 2011 3:34 PM
> To: Santosh Shilimkar
> Cc: linux-arm-kernel at lists.infradead.org; Tony Lindgren
> Subject: RE: [RFC PATCHv2 14/20] ARM: omap4: dynamically register
> local timersetup function
>
[....]

> > This way the kernel built with CONFIG_LOCAL_TIMERS can still work
> > on SoCs where twd isn't supported.
> >
> > Looks like your patch breaks that unless and until I am missing
> > something.
>
> I think the bit you're missing is that when no local timer is
> registered, the code in percpu_timer.c::percpu_timer_setup() ensures
> that the broadcast timers are used as a default.
>
> In the OMAP4 case, twd is registered unless we detect a
> OMAP4430_REV_ES1_0. In that case, we let the magic happen and fall
> back
> to the broadcast timers. Tested on a PandaBoard with twd
> artificially disabled.
>
Cool.
Thanks for the update.



More information about the linux-arm-kernel mailing list