compat: Added support for ib_core from kernel 4.8 on RHEL7.2
[~tnikolova/compat/.git] / include / linux / timekeeping.h
1 #ifndef COMPAT_LINUX_TIMEKEEPING_H
2 #define COMPAT_LINUX_TIMEKEEPING_H
3
4 #include "../../compat/config.h"
5
6 #include_next <linux/timekeeping.h>
7
8 #ifndef HAVE_KTIME_GET_NS
9 static inline u64 ktime_get_ns(void)
10 {
11         return ktime_to_ns(ktime_get());
12 }
13 #endif /* HAVE_KTIME_TO_NS */
14
15 #endif /* COMPAT_LINUX_TIMEKEEPING_H */