Remove unnecessary includes of spinlock.h under include/linux
[safe/jmp/linux-2.6] / include / asm-arm26 / atomic.h
index 3074b0e..d6dd423 100644 (file)
@@ -20,8 +20,6 @@
 #ifndef __ASM_ARM_ATOMIC_H
 #define __ASM_ARM_ATOMIC_H
 
-#include <linux/config.h>
-
 #ifdef CONFIG_SMP
 #error SMP is NOT supported
 #endif
@@ -76,6 +74,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;