]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[S390] add atomic64_xchg to s390
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Wed, 21 Feb 2007 09:55:59 +0000 (10:55 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 21 Feb 2007 09:55:59 +0000 (10:55 +0100)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
include/asm-s390/atomic.h

index af20c7462485f06de1dfb888e6f48769f0e64e9e..c17bdbf220672bb522b0a81d241c703d157b0427 100644 (file)
@@ -215,6 +215,8 @@ static __inline__ void atomic64_set_mask(unsigned long mask, atomic64_t * v)
               __CSG_LOOP(v, mask, "ogr");
 }
 
+#define atomic64_xchg(v, new) (xchg(&((v)->counter), new))
+
 static __inline__ long long atomic64_cmpxchg(atomic64_t *v,
                                             long long old, long long new)
 {