Messages in this thread | | | From | Ingo Oeser <> | Subject | Re: [patch 2/8] mutex subsystem, add atomic_cmpxchg() to all arches | Date | Wed, 21 Dec 2005 22:55:02 +0100 |
| |
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
[unhandled content-type:application/pgp-signature] | |