]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/asm-powerpc/atomic.h
Merge master.kernel.org:/pub/scm/linux/kernel/git/tglx/hrtimer-2.6
[karo-tx-linux.git] / include / asm-powerpc / atomic.h
index ae395a0632a60893626efcf527a1b64bef8a6cd3..248f9aec959c69a93f43a6bc15ceb94e3bd90bc0 100644 (file)
@@ -165,6 +165,7 @@ static __inline__ int atomic_dec_return(atomic_t *v)
 }
 
 #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