[PATCH 10/14] header: timekeeping.h: Add ktime_get_ts64()

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

 



This function was added in commit d6d29896c665d ("timekeeping: Provide
timespec64 based interfaces"). We can just use the 32 bit version
instated as the rest was already backported in backports commit
ea8b7cd797ca0c ("backports: deal with struct timespec64 changes)".

Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx>
---
 backport/backport-include/linux/timekeeping.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/backport/backport-include/linux/timekeeping.h b/backport/backport-include/linux/timekeeping.h
index c108645f..30f9b7a9 100644
--- a/backport/backport-include/linux/timekeeping.h
+++ b/backport/backport-include/linux/timekeeping.h
@@ -44,4 +44,11 @@ static inline time64_t ktime_get_real_seconds(void)
 }
 #endif
 
+#if LINUX_VERSION_IS_LESS(3,17,0)
+static inline void ktime_get_ts64(struct timespec64 *ts)
+{
+	ktime_get_ts(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