From 9a763a480d3e857f01f48ce5e4ad1b275e6c1bbb Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Mon, 24 Jun 2019 21:30:28 +0200 Subject: header: Add HRTIMER_MODE_{ABS,REL}_SOFT mac80211_hwsim uses HRTIMER_MODE_ABS_SOFT and HRTIMER_MODE_REL_SOFT now. These enum entries were added in commit 98ecadd4305d ("hrtimer: Add clock bases and hrtimer mode for softirq context") in kernel 4.16. This will execute the timers in hard interrupt context and not in soft interrupt context like intended. Signed-off-by: Hauke Mehrtens --- backport/backport-include/linux/hrtimer.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 backport/backport-include/linux/hrtimer.h diff --git a/backport/backport-include/linux/hrtimer.h b/backport/backport-include/linux/hrtimer.h new file mode 100644 index 00000000..1152a58e --- /dev/null +++ b/backport/backport-include/linux/hrtimer.h @@ -0,0 +1,13 @@ +#ifndef __BACKPORT_LINUX_HRTIMER_H +#define __BACKPORT_LINUX_HRTIMER_H +#include +#include_next + +#if LINUX_VERSION_IS_LESS(4,16,0) + +#define HRTIMER_MODE_ABS_SOFT HRTIMER_MODE_ABS +#define HRTIMER_MODE_REL_SOFT HRTIMER_MODE_REL + +#endif /* < 4.16 */ + +#endif /* __BACKPORT_LINUX_HRTIMER_H */ -- cgit v1.2.3