diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2018-09-17 23:31:42 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2018-09-19 11:07:38 +0200 |
commit | 0893dc785990ceb793c08b38b7c558c59b8194b9 (patch) | |
tree | 2029a94d9c95dbe1879106692a7f150ca6676963 | |
parent | 67fba675b482d0d0b9d29bcf686a0d09cf885eed (diff) |
header: Add ktime_get_raw_ts64()
ktime_get_raw_ts64() uses the old function which was renamed.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
[fix typo in commit message]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r-- | backport/backport-include/linux/timekeeping.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 */ |