]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-m32r/atomic.h
[PATCH] mm: split highorder pages
[linux-2.6-omap-h63xx.git] / include / asm-m32r / atomic.h
index 70761278b6cb95b1364308b32154c95a37c85dcf..3122fe106f051b32a6bc1bebfeffbf7b92d23371 100644 (file)
@@ -243,6 +243,7 @@ static __inline__ int atomic_dec_return(atomic_t *v)
 #define atomic_add_negative(i,v) (atomic_add_return((i), (v)) < 0)
 
 #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