blob: ad3cbf66ef69c4ac823b0d6a80789f247048f7cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#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 */
|