projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Namespace kernel version macros
[lttng-modules.git]
/
wrapper
/
atomic.h
diff --git
a/wrapper/atomic.h
b/wrapper/atomic.h
index 51920c4a03fe673a36edb4c3b70d71e18614dcd8..63aaa37f9d8415a8425fd3ab8ce7b2eb0b696bdd 100644
(file)
--- a/
wrapper/atomic.h
+++ b/
wrapper/atomic.h
@@
-10,14
+10,14
@@
#ifndef _LTTNG_WRAPPER_ATOMIC_H
#define _LTTNG_WRAPPER_ATOMIC_H
#ifndef _LTTNG_WRAPPER_ATOMIC_H
#define _LTTNG_WRAPPER_ATOMIC_H
-#include <l
inux/
version.h>
-#if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(2,6,37))
+#include <l
ttng-kernel-
version.h>
+#if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(2,6,37))
#include <linux/atomic.h>
#else
#include <asm/atomic.h>
#endif
#include <linux/atomic.h>
#else
#include <asm/atomic.h>
#endif
-#if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(3,16,0))
+#if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(3,16,0))
static inline void lttng_smp_mb__before_atomic(void)
{
smp_mb__before_atomic();
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();
}
{
smp_mb__after_atomic();
}
-#else /* #if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(3,16,0)) */
+#else /* #if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(3,16,0)) */
static inline void lttng_smp_mb__before_atomic(void)
{
smp_mb__before_atomic_inc();
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();
}
{
smp_mb__after_atomic_inc();
}
-#endif /* #else #if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(3,16,0)) */
+#endif /* #else #if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(3,16,0)) */
#endif /* _LTTNG_WRAPPER_ATOMIC_H */
#endif /* _LTTNG_WRAPPER_ATOMIC_H */
This page took
0.024633 seconds
and
4
git commands to generate.