From 71c55882fa35854ddcb2a08229fe4ad365970941 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Fri, 9 Feb 2018 22:54:12 +0100 Subject: include/linux/time64.h: no need for __iter_div_u64_rem in userspace --- include/linux/time64.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/linux/time64.h') diff --git a/include/linux/time64.h b/include/linux/time64.h index 870bdef4..9e5d90e6 100644 --- a/include/linux/time64.h +++ b/include/linux/time64.h @@ -191,8 +191,8 @@ extern struct timespec64 ns_to_timespec64(const s64 nsec); */ static __always_inline void timespec64_add_ns(struct timespec64 *a, u64 ns) { - a->tv_sec += __iter_div_u64_rem(a->tv_nsec + ns, NSEC_PER_SEC, &ns); - a->tv_nsec = ns; + a->tv_sec += (a->tv_nsec + ns) / NSEC_PER_SEC; + a->tv_nsec += (a->tv_nsec + ns) % NSEC_PER_SEC; } #endif -- cgit v1.2.3