[ewg] Fix for bug 1301, rds module on IA64
Aleksey Senin
alekseys at voltaire.com
Thu Nov 6 09:03:12 PST 2008
This is a fix
Index: ofa_kernel-1.4/kernel_addons/backport/2.6.9_U4/include/asm-ia64/atomic.h
===================================================================
--- ofa_kernel-1.4.orig/kernel_addons/backport/2.6.9_U4/include/asm-ia64/atomic.h
+++ ofa_kernel-1.4/kernel_addons/backport/2.6.9_U4/include/asm-ia64/atomic.h
@@ -15,5 +15,7 @@
: ia64_atomic64_add(__ia64_aar_i, v); \
})
+#define atomic_cmpxchg(v, old, new) ((int)cmpxchg(&((v)->counter), old, new))
+
#include <asm-generic/atomic.h>
#endif /* __BACKPORT_ASM_IA64_ATOMIC_H */
Index: ofa_kernel-1.4/kernel_addons/backport/2.6.9_U5/include/asm-ia64/atomic.h
===================================================================
--- ofa_kernel-1.4.orig/kernel_addons/backport/2.6.9_U5/include/asm-ia64/atomic.h
+++ ofa_kernel-1.4/kernel_addons/backport/2.6.9_U5/include/asm-ia64/atomic.h
@@ -15,5 +15,7 @@
: ia64_atomic64_add(__ia64_aar_i, v); \
})
+#define atomic_cmpxchg(v, old, new) ((int)cmpxchg(&((v)->counter), old, new))
+
#include <asm-generic/atomic.h>
#endif /* __BACKPORT_ASM_IA64_ATOMIC_H */
Index: ofa_kernel-1.4/kernel_addons/backport/2.6.9_U6/include/asm-ia64/atomic.h
===================================================================
--- ofa_kernel-1.4.orig/kernel_addons/backport/2.6.9_U6/include/asm-ia64/atomic.h
+++ ofa_kernel-1.4/kernel_addons/backport/2.6.9_U6/include/asm-ia64/atomic.h
@@ -15,5 +15,7 @@
: ia64_atomic64_add(__ia64_aar_i, v); \
})
+#define atomic_cmpxchg(v, old, new) ((int)cmpxchg(&((v)->counter), old, new))
+
#include <asm-generic/atomic.h>
#endif /* __BACKPORT_ASM_IA64_ATOMIC_H */
Index: ofa_kernel-1.4/kernel_addons/backport/2.6.9_U7/include/asm-ia64/atomic.h
===================================================================
--- ofa_kernel-1.4.orig/kernel_addons/backport/2.6.9_U7/include/asm-ia64/atomic.h
+++ ofa_kernel-1.4/kernel_addons/backport/2.6.9_U7/include/asm-ia64/atomic.h
@@ -15,5 +15,7 @@
: ia64_atomic64_add(__ia64_aar_i, v); \
})
+#define atomic_cmpxchg(v, old, new) ((int)cmpxchg(&((v)->counter), old, new))
+
#include <asm-generic/atomic.h>
#endif /* __BACKPORT_ASM_IA64_ATOMIC_H */
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ia64-atomic_cmpxchg.patch
Type: text/x-patch
Size: 2180 bytes
Desc: not available
URL: <http://lists.openfabrics.org/pipermail/ewg/attachments/20081106/1d4839dc/attachment.bin>
More information about the ewg
mailing list