On Wednesday 21 December 2005 16:54, Ingo Molnar wrote: > add atomic_cmpxchg() to all the architectures. Needed by the new mutex code. You add atomic_xchg(), since the above exists already. Please fixup your patch description! > Index: linux/include/asm-alpha/atomic.h > =================================================================== > --- linux.orig/include/asm-alpha/atomic.h > +++ linux/include/asm-alpha/atomic.h > @@ -176,6 +176,7 @@ static __inline__ long atomic64_sub_retu > } > > #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n))) > +#define atomic_xchg(v, new) (xchg(&((v)->counter), new)) ^^^^^^^^^^^^^^^^^^^^^^ see? Regards Ingo Oeser
Attachment:
pgpo5j7pungwn.pgp
Description: PGP signature
- Follow-Ups:
- Re: [patch 2/8] mutex subsystem, add atomic_cmpxchg() to all arches
- From: Ingo Molnar <[email protected]>
- Re: [patch 2/8] mutex subsystem, add atomic_cmpxchg() to all arches
- References:
- [patch 2/8] mutex subsystem, add atomic_cmpxchg() to all arches
- From: Ingo Molnar <[email protected]>
- [patch 2/8] mutex subsystem, add atomic_cmpxchg() to all arches
- Prev by Date: Re: Another casualty of -rc6
- Next by Date: [PATCH 01/02] RT: add back plist docs
- Previous by thread: [patch 2/8] mutex subsystem, add atomic_cmpxchg() to all arches
- Next by thread: Re: [patch 2/8] mutex subsystem, add atomic_cmpxchg() to all arches
- Index(es):