]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-alpha/atomic.h
Merge branch 'linus' of master.kernel.org:/pub/scm/linux/kernel/git/perex/alsa
[linux-2.6-omap-h63xx.git] / include / asm-alpha / atomic.h
index cb03bbe92cdfbf503acdcb168384de49cde5d475..fc77f74130832a099ab91bf26449f1f3ea348690 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)                             \
 ({                                                             \