Skip to content

Commit 6f16eeb

Browse files
timekeeping: Switch HAS_PERSISTENT_CLOCK to ALWAYS_USE_PERSISTENT_CLOCK
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>
1 parent e90c83f commit 6f16eeb

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎arch/x86/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ config X86
108108
select GENERIC_STRNLEN_USER
109109
select HAVE_RCU_USER_QS if X86_64
110110
select HAVE_IRQ_TIME_ACCOUNTING
111-
select HAS_PERSISTENT_CLOCK
111+
select ALWAYS_USE_PERSISTENT_CLOCK
112112
select GENERIC_KERNEL_THREAD
113113
select GENERIC_KERNEL_EXECVE
114114
select MODULES_USE_ELF_REL if X86_32

‎drivers/rtc/Kconfig‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if RTC_CLASS
2020
config RTC_HCTOSYS
2121
bool "Set system time from RTC on startup and resume"
2222
default y
23-
depends on !HAS_PERSISTENT_CLOCK
23+
depends on !ALWAYS_USE_PERSISTENT_CLOCK
2424
help
2525
If you say yes here, the system time (wall clock) will be set using
2626
the value read from a specified RTC device. This is useful to avoid
@@ -29,7 +29,7 @@ config RTC_HCTOSYS
2929
config RTC_SYSTOHC
3030
bool "Set the RTC time based on NTP synchronization"
3131
default y
32-
depends on !HAS_PERSISTENT_CLOCK
32+
depends on !ALWAYS_USE_PERSISTENT_CLOCK
3333
help
3434
If you say yes here, the system time (wall clock) will be stored
3535
in the RTC specified by RTC_HCTOSYS_DEVICE approximately every 11

‎include/linux/time.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ static inline bool timespec_valid_strict(const struct timespec *ts)
117117

118118
extern bool persistent_clock_exist;
119119

120-
#ifdef CONFIG_HAS_PERSISTENT_CLOCK
120+
#ifdef ALWAYS_USE_PERSISTENT_CLOCK
121121
#define has_persistent_clock() true
122122
#else
123123
static inline bool has_persistent_clock(void)

‎kernel/time/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ config ARCH_CLOCKSOURCE_DATA
1313
bool
1414

1515
# Platforms has a persistent clock
16-
config HAS_PERSISTENT_CLOCK
16+
config ALWAYS_USE_PERSISTENT_CLOCK
1717
bool
1818
default n
1919

0 commit comments

Comments
 (0)