diff options
Diffstat (limited to 'backport')
-rw-r--r-- | backport/backport-include/linux/hrtimer.h | 17 | ||||
-rw-r--r-- | backport/backport-include/linux/interrupt.h | 17 |
2 files changed, 16 insertions, 18 deletions
diff --git a/backport/backport-include/linux/hrtimer.h b/backport/backport-include/linux/hrtimer.h deleted file mode 100644 index bdcf106e..00000000 --- a/backport/backport-include/linux/hrtimer.h +++ /dev/null @@ -1,17 +0,0 @@ -#ifndef _BP_HRTIMER_H -#define _BP_HRTIMER_H -#include <linux/version.h> -#include_next <linux/hrtimer.h> -#include <linux/interrupt.h> - -#if LINUX_VERSION_IS_LESS(4,10,0) -static inline void backport_hrtimer_start(struct hrtimer *timer, s64 time, - const enum hrtimer_mode mode) -{ - ktime_t _time = { .tv64 = time }; - hrtimer_start(timer, _time, mode); -} -#define hrtimer_start LINUX_BACKPORT(hrtimer_start) -#endif - -#endif /* _BP_HRTIMER_H */ diff --git a/backport/backport-include/linux/interrupt.h b/backport/backport-include/linux/interrupt.h index 0e243ba8..ad3cbf66 100644 --- a/backport/backport-include/linux/interrupt.h +++ b/backport/backport-include/linux/interrupt.h @@ -1,2 +1,17 @@ -#include <linux/hrtimer.h> +#ifndef _BP_LINUX_INTERRUPT_H +#define _BP_LINUX_INTERRUPT_H +#include <linux/version.h> #include_next <linux/interrupt.h> +#include <linux/ktime.h> + +#if LINUX_VERSION_IS_LESS(4,10,0) +static inline void backport_hrtimer_start(struct hrtimer *timer, s64 time, + const enum hrtimer_mode mode) +{ + ktime_t _time = { .tv64 = time }; + hrtimer_start(timer, _time, mode); +} +#define hrtimer_start LINUX_BACKPORT(hrtimer_start) +#endif + +#endif /* _BP_LINUX_INTERRUPT_H */ |