Namespace kernel version macros
[lttng-modules.git] / include / wrapper / atomic.h
index cc7c64c502cca0bfd6e4172c347a9730a38e6bfb..31bf328488635662e3f6aaf1094dd7f61fad1f04 100644 (file)
 #ifndef _LTTNG_WRAPPER_ATOMIC_H
 #define _LTTNG_WRAPPER_ATOMIC_H
 
-#include <linux/version.h>
+#include <lttng/kernel-version.h>
 #include <linux/atomic.h>
 
-#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();
@@ -23,7 +23,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();
@@ -33,6 +33,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 */
This page took 0.02486 seconds and 4 git commands to generate.