Commit 288fb3d5 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Richard Weinberger
Browse files

um: time: Use timespec64 for persistent clock



This read_persistent_clock() implementation is the only remaining
caller of set_normalized_timespec(). Using read_persistent_clock64()
and set_normalized_timespec64() instead lets us remove the deprecated
interface in the future and helps make 32-bit arch/um get closer to
working beyond 2038.

Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent cc70bec0
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -121,11 +121,11 @@ static void __init um_timer_setup(void)
	clockevents_register_device(&timer_clockevent);
}

void read_persistent_clock(struct timespec *ts)
void read_persistent_clock64(struct timespec64 *ts)
{
	long long nsecs = os_persistent_clock_emulation();

	set_normalized_timespec(ts, nsecs / NSEC_PER_SEC,
	set_normalized_timespec64(ts, nsecs / NSEC_PER_SEC,
				  nsecs % NSEC_PER_SEC);
}