parisc: time: Convert read_persistent_clock() to read_persistent_clock64()
authorBaolin Wang <baolin.wang@linaro.org>
Thu, 19 Apr 2018 06:51:03 +0000 (14:51 +0800)
committerHelge Deller <deller@gmx.de>
Fri, 20 Apr 2018 18:18:21 +0000 (20:18 +0200)
commitf76cdd00ef0e39d880139b074e3b247594dff95a
tree8650a13c6b5571a44fe5678fccafd587e73604b2
parent41dbee81c875300072f6154d6722f6e8e1353cca
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>
arch/parisc/kernel/time.c