header: add ether_addr_to_u64() and u64_to_ether_addr()
[openwrt/staging/blogic.git] / backport / backport-include / linux / hrtimer.h
1 #ifndef _BP_HRTIMER_H
2 #define _BP_HRTIMER_H
3 #include <linux/version.h>
4 #include_next <linux/hrtimer.h>
5 #include <linux/interrupt.h>
6
7 #if LINUX_VERSION_IS_LESS(4,10,0)
8 static inline void backport_hrtimer_start(struct hrtimer *timer, s64 time,
9 const enum hrtimer_mode mode)
10 {
11 ktime_t _time = { .tv64 = time };
12 hrtimer_start(timer, _time, mode);
13 }
14 #define hrtimer_start LINUX_BACKPORT(hrtimer_start)
15 #endif
16
17 #endif /* _BP_HRTIMER_H */