]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/asm-powerpc/atomic.h
[PATCH] powerpc: Consolidate asm compatibility macros
[karo-tx-linux.git] / include / asm-powerpc / atomic.h
index ed4b345ed75d2fc6d9d317aaf96264e0acc8eca0..c5b12fd2b46bf149486245b14da0dde5fef32bb2 100644 (file)
@@ -9,21 +9,13 @@ typedef struct { volatile int counter; } atomic_t;
 
 #ifdef __KERNEL__
 #include <asm/synch.h>
+#include <asm/asm-compat.h>
 
 #define ATOMIC_INIT(i)         { (i) }
 
 #define atomic_read(v)         ((v)->counter)
 #define atomic_set(v,i)                (((v)->counter) = (i))
 
-/* Erratum #77 on the 405 means we need a sync or dcbt before every stwcx.
- * The old ATOMIC_SYNC_FIX covered some but not all of this.
- */
-#ifdef CONFIG_IBM405_ERR77
-#define PPC405_ERR77(ra,rb)    "dcbt " #ra "," #rb ";"
-#else
-#define PPC405_ERR77(ra,rb)
-#endif
-
 static __inline__ void atomic_add(int a, atomic_t *v)
 {
        int t;