diff options
author | Baolin Wang <baolin.wang@linaro.org> | 2018-04-19 08:51:03 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2018-04-20 20:18:21 +0200 |
commit | f76cdd00ef0e39d880139b074e3b247594dff95a (patch) | |
tree | 8650a13c6b5571a44fe5678fccafd587e73604b2 /arch | |
parent | parisc: Document rules regarding checksum of HPMC handler (diff) | |
download | linux-f76cdd00ef0e39d880139b074e3b247594dff95a.tar.xz linux-f76cdd00ef0e39d880139b074e3b247594dff95a.zip |
parisc: time: Convert read_persistent_clock() to read_persistent_clock64()
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 <baolin.wang@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/parisc/kernel/time.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/parisc/kernel/time.c b/arch/parisc/kernel/time.c index c3830400ca28..a1e772f909cb 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) { |