header: fix compile error on PowerPC (PPC_85xx)
[openwrt/staging/blogic.git] / backport / backport-include / linux / interrupt.h
1 #ifndef _BP_LINUX_INTERRUPT_H
2 #define _BP_LINUX_INTERRUPT_H
3 #include <linux/version.h>
4 #include_next <linux/interrupt.h>
5 #include <linux/ktime.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_LINUX_INTERRUPT_H */