Merge branch 'for-next' of git://gitorious.org/kernel-hsi/kernel-hsi
[firefly-linux-kernel-4.4.55.git] / include / asm-generic / atomic.h
index e37963c1df4da6ee5c586b455b22efdb919e035e..1ced6413ea0345580830394554e0ed2b69ba1224 100644 (file)
@@ -15,6 +15,8 @@
 #ifndef __ASM_GENERIC_ATOMIC_H
 #define __ASM_GENERIC_ATOMIC_H
 
+#include <asm/cmpxchg.h>
+
 #ifdef CONFIG_SMP
 /* Force people to define core atomics */
 # if !defined(atomic_add_return) || !defined(atomic_sub_return) || \
@@ -52,7 +54,6 @@
 #define atomic_set(v, i) (((v)->counter) = (i))
 
 #include <linux/irqflags.h>
-#include <asm/system.h>
 
 /**
  * atomic_add_return - add integer to atomic variable