]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite0ec020c9af8d0af5f026a0521368b6eede409bb
tree8650a13c6b5571a44fe5678fccafd587e73604b2
parent29d4eeb2848dde4fd6e129f57d6beac8206dedb0
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