Hi,
Here is the complete support for all atomic operations in local.h for all
architectures. The local_t type is now identical on each architectures : it
contains an atomic_long_t field, just like the asm-generic implementation.
This patch applies on 2.6.19. It is currently useful to my LTTng tra
Hi,
I also completed the support for all atomic operations in local.h for all
architectures. The local_t type is now identical on each architectures : it
contains an atomic_long_t field, just like the asm-generic implementation.
Please review.
Mathieu
---BEGIN---
--- a/include/asm-alpha/local.h
New version, fixes PowerPC typo (cut'n'pasted from the atomic.h typo).
Mathieu
--- a/include/asm-i386/atomic.h
+++ b/include/asm-i386/atomic.h
@@ -207,8 +207,9 @@ static __inline__ int atomic_sub_return(
return atomic_add_return(-i,v);
}
-#define atomic_cmpxchg(v, old, new) ((int)cmpxc
* Christoph Hellwig ([EMAIL PROTECTED]) wrote:
> We already have local_t in asm/local.h for this purposed. Unfortunately
> several architecture implementations are rather suboptimal, but I'm sure
> the architecture maintainers would be interested in patches to optimize
> the various implementation
4 matches
Mail list logo