aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include
diff options
context:
space:
mode:
authorMateusz Jończyk <mat.jonczyk@o2.pl>2022-08-13 15:10:34 +0200
committerIngo Molnar <mingo@kernel.org>2022-08-14 11:24:29 +0200
commite1a6bc7c6969527dbe0afa4801a0237e41e26b1b (patch)
tree6c03f6ccfbd8ad5661fa8d5664354f2f961f3189 /arch/x86/include
parentx86/rtc: Rewrite & simplify mach_get_cmos_time() by deleting duplicated functionality (diff)
downloadlinux-dev-e1a6bc7c6969527dbe0afa4801a0237e41e26b1b.tar.xz
linux-dev-e1a6bc7c6969527dbe0afa4801a0237e41e26b1b.zip
x86/rtc: Rename mach_set_rtc_mmss() to mach_set_cmos_time()
Once upon a time, before this commit in 2013: 3195ef59cb42 ("x86: Do full rtc synchronization with ntp") ... the mach_set_rtc_mmss() function set only the minutes and seconds registers of the CMOS RTC - hence the '_mmss' postfix. This is no longer true, so rename the function to mach_set_cmos_time(). [ mingo: Expanded changelog a bit. ] Signed-off-by: Mateusz Jończyk <mat.jonczyk@o2.pl> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20220813131034.768527-2-mat.jonczyk@o2.pl
Diffstat (limited to 'arch/x86/include')
-rw-r--r--arch/x86/include/asm/mc146818rtc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/mc146818rtc.h b/arch/x86/include/asm/mc146818rtc.h
index 97198001e567..6115bb3d5795 100644
--- a/arch/x86/include/asm/mc146818rtc.h
+++ b/arch/x86/include/asm/mc146818rtc.h
@@ -95,7 +95,7 @@ static inline unsigned char current_lock_cmos_reg(void)
unsigned char rtc_cmos_read(unsigned char addr);
void rtc_cmos_write(unsigned char val, unsigned char addr);
-extern int mach_set_rtc_mmss(const struct timespec64 *now);
+extern int mach_set_cmos_time(const struct timespec64 *now);
extern void mach_get_cmos_time(struct timespec64 *now);
#define RTC_IRQ 8