lkml.org 
[lkml]   [2005]   [Dec]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [patch 2/8] mutex subsystem, add atomic_cmpxchg() to all arches
Date
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]
\
 
 \ /
  Last update: 2005-12-21 22:57    [W:0.081 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site