diff options
Diffstat (limited to 'backport-include/linux/timekeeping.h')
-rw-r--r-- | backport-include/linux/timekeeping.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/backport-include/linux/timekeeping.h b/backport-include/linux/timekeeping.h index 56c3dee..602f4c2 100644 --- a/backport-include/linux/timekeeping.h +++ b/backport-include/linux/timekeeping.h @@ -8,6 +8,11 @@ #endif #if LINUX_VERSION_IS_LESS(3,17,0) +#if BITS_PER_LONG < 64 +extern u64 ktime_divns(const ktime_t kt, s64 div); +#else /* BITS_PER_LONG < 64 */ +# define ktime_divns(kt, div) (u64)((kt).tv64 / (div)) +#endif #define ktime_get_ns LINUX_BACKPORT(ktime_get_ns) extern ktime_t ktime_get(void); #define ktime_get_ns LINUX_BACKPORT(ktime_get_ns) |