patch-2.4.7 linux/include/asm-sparc/atomic.h
Next file: linux/include/asm-sparc/bitops.h
Previous file: linux/include/asm-sh/softirq.h
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Mon Jul 9 21:32:02 2001
- Orig file:
v2.4.6/linux/include/asm-sparc/atomic.h
- Orig date:
Sun Mar 25 18:14:21 2001
diff -u --recursive --new-file v2.4.6/linux/include/asm-sparc/atomic.h linux/include/asm-sparc/atomic.h
@@ -100,6 +100,12 @@
#define atomic_add_negative(i, v) (__atomic_add((i), (v)) < 0)
+/* Atomic operations are already serializing */
+#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 /* !(__KERNEL__) */
#endif /* !(__ARCH_SPARC_ATOMIC__) */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)