]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - arch/sh/include/asm/atomic.h
powerpc: Parse the command line before calling CAS
[mirror_ubuntu-zesty-kernel.git] / arch / sh / include / asm / atomic.h
index d93ed7ce1b2f053ce7ec8fc6df152a73ce22518e..8a7bd80c8b331c8d6b4f93bab2d92f8c4c54fbab 100644 (file)
@@ -1,6 +1,12 @@
 #ifndef __ASM_SH_ATOMIC_H
 #define __ASM_SH_ATOMIC_H
 
+#if defined(CONFIG_CPU_J2)
+
+#include <asm-generic/atomic.h>
+
+#else
+
 /*
  * Atomic operations that C can't guarantee us.  Useful for
  * resource counting etc..
@@ -25,8 +31,6 @@
 #include <asm/atomic-irq.h>
 #endif
 
-#define atomic_fetch_or atomic_fetch_or
-
 #define atomic_add_negative(a, v)      (atomic_add_return((a), (v)) < 0)
 #define atomic_dec_return(v)           atomic_sub_return(1, (v))
 #define atomic_inc_return(v)           atomic_add_return(1, (v))
@@ -65,4 +69,6 @@ static inline int __atomic_add_unless(atomic_t *v, int a, int u)
        return c;
 }
 
+#endif /* CONFIG_CPU_J2 */
+
 #endif /* __ASM_SH_ATOMIC_H */