]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-m32r/atomic.h
V4L/DVB (4925): Corrected and separated the Kconfig for usbvision
[linux-2.6-omap-h63xx.git] / include / asm-m32r / atomic.h
index 70761278b6cb95b1364308b32154c95a37c85dcf..f5a7d7301c72170523cc265402acfc487d16b553 100644 (file)
@@ -9,7 +9,6 @@
  *    Copyright (C) 2004  Hirokazu Takata <takata at linux-m32r.org>
  */
 
-#include <linux/config.h>
 #include <asm/assembler.h>
 #include <asm/system.h>
 
@@ -243,6 +242,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