Merge branch 'for-linus' of git://git.infradead.org/ubi-2.6
[powerpc.git] / include / asm-alpha / atomic.h
index cb03bbe..fc77f74 100644 (file)
@@ -176,6 +176,7 @@ static __inline__ long atomic64_sub_return(long i, atomic64_t * v)
 }
 
 #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n)))
+#define atomic_xchg(v, new) (xchg(&((v)->counter), new))
 
 #define atomic_add_unless(v, a, u)                             \
 ({                                                             \