Re: [PATCH 2/2] local.h modifications for 2.6.19

2006-12-05 Thread Mathieu Desnoyers
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

Re: [PATCH 2/2] local.h modifications

2006-12-01 Thread Mathieu Desnoyers
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

Re: [PATCH 2/2] local.h modifications

2006-11-30 Thread Mathieu Desnoyers
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

[PATCH 2/2] local.h modifications

2006-11-30 Thread Mathieu Desnoyers
* 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