Don't include linux/config.h from anywhere else in include/
[linux-drm-fsl-dcu.git] / include / asm-v850 / atomic.h
index f5b9ab6f4e70da97b847db5e910c5956a63a9acd..e4e57de08f73054b042592f638ed12d76d046f9e 100644 (file)
@@ -14,7 +14,6 @@
 #ifndef __V850_ATOMIC_H__
 #define __V850_ATOMIC_H__
 
-#include <linux/config.h>
 
 #include <asm/system.h>
 
@@ -104,6 +103,8 @@ static inline int atomic_cmpxchg(atomic_t *v, int old, int new)
        return ret;
 }
 
+#define atomic_xchg(v, new) (xchg(&((v)->counter), new))
+
 static inline int atomic_add_unless(atomic_t *v, int a, int u)
 {
        int ret;