X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=wrapper%2Fatomic.h;h=63aaa37f9d8415a8425fd3ab8ce7b2eb0b696bdd;hb=b78104db53f97c10add30016e365855a26f6e01e;hp=51920c4a03fe673a36edb4c3b70d71e18614dcd8;hpb=7381483908683d2077de407a3a052716afebda67;p=lttng-modules.git diff --git a/wrapper/atomic.h b/wrapper/atomic.h index 51920c4a..63aaa37f 100644 --- a/wrapper/atomic.h +++ b/wrapper/atomic.h @@ -10,14 +10,14 @@ #ifndef _LTTNG_WRAPPER_ATOMIC_H #define _LTTNG_WRAPPER_ATOMIC_H -#include -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) +#include +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(2,6,37)) #include #else #include #endif -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,16,0)) +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,16,0)) static inline void lttng_smp_mb__before_atomic(void) { smp_mb__before_atomic(); @@ -27,7 +27,7 @@ static inline void lttng_smp_mb__after_atomic(void) { smp_mb__after_atomic(); } -#else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,16,0)) */ +#else /* #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,16,0)) */ static inline void lttng_smp_mb__before_atomic(void) { smp_mb__before_atomic_inc(); @@ -37,6 +37,6 @@ static inline void lttng_smp_mb__after_atomic(void) { smp_mb__after_atomic_inc(); } -#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,16,0)) */ +#endif /* #else #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,16,0)) */ #endif /* _LTTNG_WRAPPER_ATOMIC_H */