]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-arm26/atomic.h
oom: kill all threads that share mm with killed task
[linux-2.6-omap-h63xx.git] / include / asm-arm26 / atomic.h
index 3074b0e76343138f7ba8eed0931603f3ec58f550..97e944fe1cff4c9bf4d9c0eb7603fca6e43bf916 100644 (file)
@@ -20,7 +20,6 @@
 #ifndef __ASM_ARM_ATOMIC_H
 #define __ASM_ARM_ATOMIC_H
 
-#include <linux/config.h>
 
 #ifdef CONFIG_SMP
 #error SMP is NOT supported
@@ -76,6 +75,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;