projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wrapper: powerpc64: fix kernel crash caused by do_get_kallsyms
[lttng-modules.git]
/
wrapper
/
atomic.h
diff --git
a/wrapper/atomic.h
b/wrapper/atomic.h
index 51920c4a03fe673a36edb4c3b70d71e18614dcd8..e0e899bdf075a313903eada317d084b52fa0b019 100644
(file)
--- a/
wrapper/atomic.h
+++ b/
wrapper/atomic.h
@@
-10,14
+10,10
@@
#ifndef _LTTNG_WRAPPER_ATOMIC_H
#define _LTTNG_WRAPPER_ATOMIC_H
#ifndef _LTTNG_WRAPPER_ATOMIC_H
#define _LTTNG_WRAPPER_ATOMIC_H
-#include <linux/version.h>
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
+#include <lttng-kernel-version.h>
#include <linux/atomic.h>
#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
+23,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
+33,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.030373 seconds
and
4
git commands to generate.