diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-11-02 08:07:02 -0400 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2018-02-19 13:38:51 -0500 |
commit | 288fb3d5683f5089fa1ba9258e4351170c1f0401 (patch) | |
tree | b9e272eeab79c7dd170f471b7d8b682b7133153e /arch/um | |
parent | cc70bec070f6985383d5afe3b20b6236f4397ca4 (diff) |
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 <arnd@arndb.de>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um')
-rw-r--r-- | arch/um/kernel/time.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/um/kernel/time.c b/arch/um/kernel/time.c index 7f69d17de354..052de4c8acb2 100644 --- a/arch/um/kernel/time.c +++ b/arch/um/kernel/time.c | |||
@@ -121,12 +121,12 @@ static void __init um_timer_setup(void) | |||
121 | clockevents_register_device(&timer_clockevent); | 121 | clockevents_register_device(&timer_clockevent); |
122 | } | 122 | } |
123 | 123 | ||
124 | void read_persistent_clock(struct timespec *ts) | 124 | void read_persistent_clock64(struct timespec64 *ts) |
125 | { | 125 | { |
126 | long long nsecs = os_persistent_clock_emulation(); | 126 | long long nsecs = os_persistent_clock_emulation(); |
127 | 127 | ||
128 | set_normalized_timespec(ts, nsecs / NSEC_PER_SEC, | 128 | set_normalized_timespec64(ts, nsecs / NSEC_PER_SEC, |
129 | nsecs % NSEC_PER_SEC); | 129 | nsecs % NSEC_PER_SEC); |
130 | } | 130 | } |
131 | 131 | ||
132 | void __init time_init(void) | 132 | void __init time_init(void) |