projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: reuse code in accept() and accept4() instrumentation
[lttng-modules.git]
/
wrapper
/
atomic.h
diff --git
a/wrapper/atomic.h
b/wrapper/atomic.h
index 6a3cd076b28bb05e7695bb9aef1c205c387cdda3..f3a3dabf2612caeb3dfe93efa93e2849254376d2 100644
(file)
--- a/
wrapper/atomic.h
+++ b/
wrapper/atomic.h
@@
-24,7
+24,11
@@
*/
#include <linux/version.h>
*/
#include <linux/version.h>
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
#include <linux/atomic.h>
#include <linux/atomic.h>
+#else
+#include <asm/atomic.h>
+#endif
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,16,0))
static inline void lttng_smp_mb__before_atomic(void)
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,16,0))
static inline void lttng_smp_mb__before_atomic(void)
This page took
0.024199 seconds
and
4
git commands to generate.