Skip to content

Commit

Permalink
parisc: time: Convert read_persistent_clock() to read_persistent_cloc…
Browse files Browse the repository at this point in the history
…k64()

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>
  • Loading branch information
wangbaolin719 authored and hdeller committed Apr 20, 2018
1 parent 41dbee8 commit f76cdd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/parisc/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f76cdd0

Please sign in to comment.