[PATCH 09/14] at91: switch pit timer to early platform devices
Russell King - ARM Linux
linux at arm.linux.org.uk
Thu Apr 28 17:46:33 EDT 2011
On Thu, Apr 28, 2011 at 10:47:37PM +0200, Andrew Victor wrote:
> hi Russell,
> >> I think it would be cleaner still if the "struct sys_timer" could
> >> include a register-base-address field. Russell?
> > That's not really what all platforms want, and with the advent of
> > clocksources and clock events, I think the sys_timer thing is mostly
> > dead.
> How would those systems initialize the system-timer?
> An "init_timer" method in the machine-description?
I was thinking of an init_timekeeping() callback in the machine record
rather than having platforms provide a useless sys_timer structure, and
maybe having an ARM generic init_legacy_timekeeping() function for those
platforms which still use sys_timer() to put into the init_timekeeping()
I've not really firmed up the idea yet though.
Alternatively, if someone wants to come up with a better way to initialize
the clocksource and clock event stuff across all platforms...
More information about the linux-arm-kernel