]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/asm-generic/atomic.h
Merge branch 'locking/arch-atomic' of git://git.kernel.org/pub/scm/linux/kernel/git...
[karo-tx-linux.git] / include / asm-generic / atomic.h
index 1973ad2b13f4dd80c750e4ff5c71d2e1510c4ff8..d4d7e337fdcb5d7bda73656c1e8b66fee6ff2cc3 100644 (file)
@@ -98,15 +98,16 @@ ATOMIC_OP_RETURN(add, +)
 ATOMIC_OP_RETURN(sub, -)
 #endif
 
-#ifndef atomic_clear_mask
+#ifndef atomic_and
 ATOMIC_OP(and, &)
-#define atomic_clear_mask(i, v) atomic_and(~(i), (v))
 #endif
 
-#ifndef atomic_set_mask
-#define CONFIG_ARCH_HAS_ATOMIC_OR
+#ifndef atomic_or
 ATOMIC_OP(or, |)
-#define atomic_set_mask(i, v)  atomic_or((i), (v))
+#endif
+
+#ifndef atomic_xor
+ATOMIC_OP(xor, ^)
 #endif
 
 #undef ATOMIC_OP_RETURN