]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-s390/atomic.h
[PATCH] x86: PARAVIRT: add hooks to intercept mm creation and destruction
[linux-2.6-omap-h63xx.git] / 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)
 {