summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/mc146818rtc.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-04-27 22:13:23 +0200
committerThomas Gleixner <tglx@linutronix.de>2018-05-19 14:03:14 +0200
commite27c49291a7fe9dc415c9fcab5bd781ec82dfe04 (patch)
tree008966041f82225a331bbb55bed874e82f367fcd /arch/x86/include/asm/mc146818rtc.h
parent06aa376903b6e8c8741395a4702d78d47c7c27c6 (diff)
downloadlinux-0-day-e27c49291a7fe9dc415c9fcab5bd781ec82dfe04.tar.gz
linux-0-day-e27c49291a7fe9dc415c9fcab5bd781ec82dfe04.tar.xz
x86: Convert x86_platform_ops to timespec64
The x86 platform operations are fairly isolated, so it's easy to change them from using timespec to timespec64. It has been checked that all the users and callers are safe, and there is only one critical function that is broken beyond 2106: pvclock_read_wallclock() uses a 32-bit number of seconds since the epoch to communicate the boot time between host and guest in a virtual environment. This will work until 2106, but fixing this is outside the scope of this change, Add a comment at least. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> Acked-by: Radim Krčmář <rkrcmar@redhat.com> Acked-by: Jan Kiszka <jan.kiszka@siemens.com> Cc: Juergen Gross <jgross@suse.com> Cc: jailhouse-dev@googlegroups.com Cc: Borislav Petkov <bp@suse.de> Cc: kvm@vger.kernel.org Cc: y2038@lists.linaro.org Cc: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com> Cc: xen-devel@lists.xenproject.org Cc: John Stultz <john.stultz@linaro.org> Cc: Andy Lutomirski <luto@kernel.org> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Cc: Joao Martins <joao.m.martins@oracle.com> Link: https://lkml.kernel.org/r/20180427201435.3194219-1-arnd@arndb.de
Diffstat (limited to 'arch/x86/include/asm/mc146818rtc.h')
-rw-r--r--arch/x86/include/asm/mc146818rtc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/include/asm/mc146818rtc.h b/arch/x86/include/asm/mc146818rtc.h
index 1775a32f7ea6d..97198001e5676 100644
--- a/arch/x86/include/asm/mc146818rtc.h
+++ b/arch/x86/include/asm/mc146818rtc.h
@@ -95,8 +95,8 @@ 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 timespec *now);
-extern void mach_get_cmos_time(struct timespec *now);
+extern int mach_set_rtc_mmss(const struct timespec64 *now);
+extern void mach_get_cmos_time(struct timespec64 *now);
#define RTC_IRQ 8