summaryrefslogtreecommitdiff
path: root/backport/backport-include/linux/hrtimer.h
diff options
context:
space:
mode:
Diffstat (limited to 'backport/backport-include/linux/hrtimer.h')
-rw-r--r--backport/backport-include/linux/hrtimer.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/backport/backport-include/linux/hrtimer.h b/backport/backport-include/linux/hrtimer.h
new file mode 100644
index 00000000..2c186dd1
--- /dev/null
+++ b/backport/backport-include/linux/hrtimer.h
@@ -0,0 +1,10 @@
+#ifndef __BACKPORT_LINUX_HRTIMER_H
+#define __BACKPORT_LINUX_HRTIMER_H
+#include_next <linux/hrtimer.h>
+
+#if LINUX_VERSION_IS_LESS(3,17,0)
+u64 bp_ktime_divns(const ktime_t kt, s64 div);
+#define ktime_divns bp_ktime_divns
+#endif /* < 3.17 */
+
+#endif /* __BACKPORT_LINUX_HRTIMER_H */