From: Baolin Wang Date: Thu, 19 Apr 2018 06:51:03 +0000 (+0800) Subject: parisc: time: Convert read_persistent_clock() to read_persistent_clock64() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fc0d99fde0d2439ac7802efcb2f390013198db3b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git parisc: time: Convert read_persistent_clock() to read_persistent_clock64() [ Upstream commit f76cdd00ef0e39d880139b074e3b247594dff95a ] The read_persistent_clock() uses a timespec, which is not year 2038 safe on 32bit systems. On parisc architecture, we have implemented generic RTC drivers that can be used to compensate the system suspend time, but the RTC time can not represent the nanosecond resolution, so this patch just converts to read_persistent_clock64() with timespec64. Signed-off-by: Baolin Wang Acked-by: Arnd Bergmann Signed-off-by: Helge Deller Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- diff --git a/arch/parisc/kernel/time.c b/arch/parisc/kernel/time.c index f7e684560186..42a873226a04 100644 --- a/arch/parisc/kernel/time.c +++ b/arch/parisc/kernel/time.c @@ -205,7 +205,7 @@ static int __init rtc_init(void) device_initcall(rtc_init); #endif -void read_persistent_clock(struct timespec *ts) +void read_persistent_clock64(struct timespec64 *ts) { static struct pdc_tod tod_data; if (pdc_tod_read(&tod_data) == 0) {