diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2018-03-04 23:57:13 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2018-03-21 09:19:32 +0100 |
commit | e78242ef93ae35403f2b5eba9bf0a985731d5059 (patch) | |
tree | e8d91285429039ce431a7262ceedb9a7f818a6b6 | |
parent | 7e5a3be5e1a00926015967b577e70039a2f118b3 (diff) |
header: timekeeping.h: Add ktime_get_ts64()
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@hauke-m.de>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r-- | backport/backport-include/linux/timekeeping.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 */ |