From 515a1fa55cda2b1d952872e1786857481bd54fcc Mon Sep 17 00:00:00 2001 From: Dominik Sliwa Date: Thu, 21 Feb 2019 14:48:31 +0100 Subject: backports: support 3.1 and 3.10 tegra kernels Changes specific to vendor kernels Signed-off-by: Dominik Sliwa --- backport/backport-include/linux/timekeeping.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'backport/backport-include/linux/timekeeping.h') diff --git a/backport/backport-include/linux/timekeeping.h b/backport/backport-include/linux/timekeeping.h index 71871531..a0d65fba 100644 --- a/backport/backport-include/linux/timekeeping.h +++ b/backport/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) -- cgit v1.2.3