Re: [PATCH 2/5] Implement generic time of day clocksource for powerpc machines.
From: john stultz <hidden>
Date: 2007-09-20 17:43:12
Also in:
linux-rt-users
From: john stultz <hidden>
Date: 2007-09-20 17:43:12
Also in:
linux-rt-users
On Thu, 2007-09-20 at 10:52 +1000, Paul Mackerras wrote:
Daniel Walker writes:quoted
If you switch to the rtc do the shift and mult need to change?You can't switch; any given CPU chip will have either the RTC or the timebase but not both.
I think what Daniel is pointing out is that the clocksource read function isn't the place for the __USE_RTC() conditional. It would likely be better instead of the timebase clocksource managing multiple type of hardware (timebase and RTC), to have a separate simple RTC clocksource, and then conditionally register one or the other at init time. thanks -john