On 01/22/2013 11:44 AM, Jason Gunthorpe wrote:On Tue, Jan 15, 2013 at 11:50:18AM -0800, John Stultz wrote:(Sigh. I got this seemingly microseconds after I sent the pull request :)On 01/15/2013 08:09 AM, Feng Tang wrote:Sort of an ugly config name, since I gather ARM should always set thisMake the persistent clock check a kernel config option, so that someApplied. I also added a dependency for Jason's CONFIG_RTC_SYSTOHC.
platform can explicitely select it, also make CONFIG_RTC_HCTOSYS depends
on its non-existence, which could prevent the persistent clock and RTC
code from doing similar thing twice during system's init/suspend/resume
phases.
If the CONFIG_HAS_PERSISTENT_CLOCK=n, then no change happens for kernel
which still does the persistent clock check in timekeeping_init().
Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Suggested-by: John Stultz <john.stultz@xxxxxxxxxx>
Signed-off-by: Feng Tang <feng.tang@xxxxxxxxx>
to 'n'...
CONFIG_USE_ONLY_PERSISTENT_CLOCK ?
So yea, fair point, there could be some confusion. But ONLY_PERSISTENT_CLOCK isn't quite right either, more like CONFIG_HAS_PERSISTENT_CLOCK_ALWAYS or something.