[PATCH 7/7] header: Add ktime_get_raw_ts64()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ktime_get_raw_ts64() uses the old function which was renmaed.

Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx>
---
 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 */
-- 
2.11.0

--
To unsubscribe from this list: send the line "unsubscribe backports" in



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux