diff options
author | Leah Neukirchen <leah@vuxu.org> | 2018-02-09 22:54:12 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2018-02-09 22:54:12 +0100 |
commit | 71c55882fa35854ddcb2a08229fe4ad365970941 (patch) | |
tree | b528595133c6deb917a4c6268b12a00b9740fd6d | |
parent | c725c69d77fba9466cada018db8673136c6868e9 (diff) |
include/linux/time64.h: no need for __iter_div_u64_rem in userspace
-rw-r--r-- | include/linux/time64.h | 4 |
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 |