summaryrefslogtreecommitdiff
path: root/include/linux/time64.h
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2018-02-09 22:54:12 +0100
committerLeah Neukirchen <leah@vuxu.org>2018-02-09 22:54:12 +0100
commit71c55882fa35854ddcb2a08229fe4ad365970941 (patch)
treeb528595133c6deb917a4c6268b12a00b9740fd6d /include/linux/time64.h
parentc725c69d77fba9466cada018db8673136c6868e9 (diff)
include/linux/time64.h: no need for __iter_div_u64_rem in userspace
Diffstat (limited to 'include/linux/time64.h')
-rw-r--r--include/linux/time64.h4
1 files changed, 2 insertions, 2 deletions
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