From 0893dc785990ceb793c08b38b7c558c59b8194b9 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Mon, 17 Sep 2018 23:31:42 +0200 Subject: header: Add ktime_get_raw_ts64() ktime_get_raw_ts64() uses the old function which was renamed. Signed-off-by: Hauke Mehrtens [fix typo in commit message] Signed-off-by: Johannes Berg --- backport/backport-include/linux/timekeeping.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/backport/backport-include/linux/timekeeping.h b/backport/backport-include/linux/timekeeping.h index 56c3deec..73ce9f17 100644 --- a/backport/backport-include/linux/timekeeping.h +++ b/backport/backport-include/linux/timekeeping.h @@ -58,4 +58,12 @@ static inline void ktime_get_ts64(struct timespec64 *ts) } #endif +#if LINUX_VERSION_IS_LESS(4,18,0) +#define ktime_get_raw_ts64 LINUX_BACKPORT(ktime_get_raw_ts64) +static inline void ktime_get_raw_ts64(struct timespec64 *ts) +{ + return getrawmonotonic64(ts); +} +#endif + #endif /* __BACKPORT_TIMEKEEPING_H */ -- cgit v1.2.3