X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=wrapper%2Ftimer.h;h=c1c0c9526942fcadec87e9a11949b68fe47a56fd;hb=7ceeb15de1454896381ca45f68151211de6eff6c;hp=441a01723c33f27df5ecf7945ac999ec4c93daf3;hpb=152fe7fccd64295a24df5bef0c5281e5ea9cfa90;p=lttng-modules.git diff --git a/wrapper/timer.h b/wrapper/timer.h index 441a0172..c1c0c952 100644 --- a/wrapper/timer.h +++ b/wrapper/timer.h @@ -28,7 +28,8 @@ #include -#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 */