]> 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)
commit25bd868e15362538786aeaf63c72e38df75bac65
tree8650a13c6b5571a44fe5678fccafd587e73604b2
parentb9cccfb2b57edf9343e1c7635231e268cb76e5f6
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