From: Arnd Bergmann Date: Thu, 2 Nov 2017 12:07:02 +0000 (+0100) Subject: um: time: Use timespec64 for persistent clock X-Git-Tag: v4.17-rc1~49^2~10 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=288fb3d5683f5089fa1ba9258e4351170c1f0401;p=users%2Fdwmw2%2Flinux.git 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: Arnd Bergmann Signed-off-by: Richard Weinberger --- diff --git a/arch/um/kernel/time.c b/arch/um/kernel/time.c index 7f69d17de3540..052de4c8acb2e 100644 --- a/arch/um/kernel/time.c +++ b/arch/um/kernel/time.c @@ -121,12 +121,12 @@ 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, - nsecs % NSEC_PER_SEC); + set_normalized_timespec64(ts, nsecs / NSEC_PER_SEC, + nsecs % NSEC_PER_SEC); } void __init time_init(void)