]> Pileus Git - ~andy/linux/commitdiff
timekeeping: Switch HAS_PERSISTENT_CLOCK to ALWAYS_USE_PERSISTENT_CLOCK
authorJohn Stultz <john.stultz@linaro.org>
Sat, 26 Jan 2013 01:08:12 +0000 (17:08 -0800)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 29 Jan 2013 22:40:12 +0000 (14:40 -0800)
Jason pointed out the HAS_PERSISTENT_CLOCK name isn't
quite accurate for the config, as some systems may have
the persistent_clock in some cases, but not always.

So change the config name to the more clear
ALWAYS_USE_PERSISTENT_CLOCK.

Signed-off-by: John Stultz <john.stultz@linaro.org>
arch/x86/Kconfig
drivers/rtc/Kconfig
include/linux/time.h
kernel/time/Kconfig

index a4135b5e562ebe304d6d863a0425a9b036d6c3e3..335da90560e4d79ab15a5c7953ceb81e417a4192 100644 (file)
@@ -108,7 +108,7 @@ config X86
        select GENERIC_STRNLEN_USER
        select HAVE_RCU_USER_QS if X86_64
        select HAVE_IRQ_TIME_ACCOUNTING
-       select HAS_PERSISTENT_CLOCK
+       select ALWAYS_USE_PERSISTENT_CLOCK
        select GENERIC_KERNEL_THREAD
        select GENERIC_KERNEL_EXECVE
        select MODULES_USE_ELF_REL if X86_32
index 05761de7929bf370ae6736cb28d942bf88bd89ad..da60de01f732f36a68edeb2104f66c7f2d9eda86 100644 (file)
@@ -20,7 +20,7 @@ if RTC_CLASS
 config RTC_HCTOSYS
        bool "Set system time from RTC on startup and resume"
        default y
-       depends on !HAS_PERSISTENT_CLOCK
+       depends on !ALWAYS_USE_PERSISTENT_CLOCK
        help
          If you say yes here, the system time (wall clock) will be set using
          the value read from a specified RTC device. This is useful to avoid
@@ -29,7 +29,7 @@ config RTC_HCTOSYS
 config RTC_SYSTOHC
        bool "Set the RTC time based on NTP synchronization"
        default y
-       depends on !HAS_PERSISTENT_CLOCK
+       depends on !ALWAYS_USE_PERSISTENT_CLOCK
        help
          If you say yes here, the system time (wall clock) will be stored
          in the RTC specified by RTC_HCTOSYS_DEVICE approximately every 11
index 369b6e3b87d84d31033368840cf6b481559dad7f..476e1d7b2c3755a728ce538e0ed31137481f47c5 100644 (file)
@@ -117,7 +117,7 @@ static inline bool timespec_valid_strict(const struct timespec *ts)
 
 extern bool persistent_clock_exist;
 
-#ifdef CONFIG_HAS_PERSISTENT_CLOCK
+#ifdef ALWAYS_USE_PERSISTENT_CLOCK
 #define has_persistent_clock() true
 #else
 static inline bool has_persistent_clock(void)
index f7e45b9b142b2c8f1fc91c1ef99c2813ea07c914..0dddb9d09d0bf5068b47b066274172f70c1db18d 100644 (file)
@@ -13,7 +13,7 @@ config ARCH_CLOCKSOURCE_DATA
        bool
 
 # Platforms has a persistent clock
-config HAS_PERSISTENT_CLOCK
+config ALWAYS_USE_PERSISTENT_CLOCK
        bool
        default n