Skip to content

Commit f76cdd0

Browse files
wangbaolin719hdeller
authored andcommitted
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 <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent 41dbee8 commit f76cdd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/parisc/kernel/time.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ static int __init rtc_init(void)
205205
device_initcall(rtc_init);
206206
#endif
207207

208-
void read_persistent_clock(struct timespec *ts)
208+
void read_persistent_clock64(struct timespec64 *ts)
209209
{
210210
static struct pdc_tod tod_data;
211211
if (pdc_tod_read(&tod_data) == 0) {

0 commit comments

Comments
 (0)