Fix: timer wrapper: support kernels >= 4.8
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 25 Aug 2016 21:39:47 +0000 (17:39 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 25 Aug 2016 21:39:47 +0000 (17:39 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
wrapper/timer.h

index 441a01723c33f27df5ecf7945ac999ec4c93daf3..c1c0c9526942fcadec87e9a11949b68fe47a56fd 100644 (file)
@@ -28,7 +28,8 @@
 #include <lttng-kernel-version.h>
 
 
-#if (LTTNG_RT_VERSION_CODE >= LTTNG_RT_KERNEL_VERSION(4,6,4,8))
+#if (LTTNG_RT_VERSION_CODE >= LTTNG_RT_KERNEL_VERSION(4,6,4,8) \
+       || LINUX_VERSION_CODE >= KERNEL_VERSION(4,8,0))
 
 #define lttng_init_timer_pinned(timer)                                 \
        init_timer_pinned(timer)
@@ -39,7 +40,7 @@ static inline int lttng_mod_timer_pinned(struct timer_list *timer,
        return mod_timer(timer, expires);
 }
 
-#else /* #if (LTTNG_RT_VERSION_CODE >= LTTNG_RT_KERNEL_VERSION(4,6,4,8)) */
+#else
 
 #define lttng_init_timer_pinned(timer)                                 \
        init_timer(timer)
@@ -50,6 +51,6 @@ static inline int lttng_mod_timer_pinned(struct timer_list *timer,
        return mod_timer_pinned(timer, expires);
 }
 
-#endif /* #else #if (LTTNG_RT_VERSION_CODE >= LTTNG_RT_KERNEL_VERSION(4,6,4,8)) */
+#endif
 
 #endif /* _LTTNG_WRAPPER_TIMER_H */
This page took 0.026256 seconds and 4 git commands to generate.