patch-2.4.10 linux/include/asm-sh/atomic.h

Next file: linux/include/asm-sh/cache.h
Previous file: linux/include/asm-s390x/tlb.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.9/linux/include/asm-sh/atomic.h linux/include/asm-sh/atomic.h
@@ -93,4 +93,10 @@
 	restore_flags(flags);
 }
 
+/* Atomic operations are already serializing on SH */
+#define smp_mb__before_atomic_dec()	barrier()
+#define smp_mb__after_atomic_dec()	barrier()
+#define smp_mb__before_atomic_inc()	barrier()
+#define smp_mb__after_atomic_inc()	barrier()
+
 #endif /* __ASM_SH_ATOMIC_H */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)