]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-parisc/atomic.h
Merge git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc-merge
[linux-2.6-omap-h63xx.git] / include / asm-parisc / atomic.h
index 64ebd086c40d231f4d7eb0e39c10f957cc69b50c..2ca56d34aaad32e582a68a5fd0d75ce410ac03cf 100644 (file)
@@ -165,6 +165,7 @@ static __inline__ int atomic_read(const atomic_t *v)
 
 /* exported interface */
 #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n)))
+#define atomic_xchg(v, new) (xchg(&((v)->counter), new))
 
 /**
  * atomic_add_unless - add unless the number is a given value