Architecture specific implementations for tickless kernel and deferrable timers
tglx at linutronix.de
Fri Apr 29 13:05:03 EDT 2011
On Fri, 29 Apr 2011, Russell King - ARM Linux wrote:
> On Fri, Apr 29, 2011 at 07:56:56PM +0530, Vikram Narayanan wrote:
> > Can you also give some idea on how the system's RTC is hooked up with
> > the generic timekeeping code.
> > Is it hooked up in someway so that the walltime is calculated wrt the
> > initial value of the RTC?
> I'd like to pass you over to the RTC folk, but I don't think they're
> very active anymore.
> Suffice it to say that the RTC subsystem will set the system date/time
> on initialization from the RTC device if one is provided. All I can
> suggest is to look at drivers/rtc and include/linux/rtc.h for the
> details. The MAINTAINERS file should list who is responsible for RTC
> stuff as well as a mailing list for it.
read_persistant_clock() is used for boottime / resume time readouts of
a direct accessible RTC.
If the RTC sits behind a slow bus which is not accessible in early
boot, then the RTC framework will take care of updating the time once
the RTC becomes available.
John Stultz is the guy who knows all the details.
More information about the linux-arm-kernel