patch-2.4.7 linux/include/asm-m68k/atomic.h
Next file: linux/include/asm-mips/atomic.h
Previous file: linux/include/asm-ia64/processor.h
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
Mon Jul 9 21:30:19 2001
- Orig file:
v2.4.6/linux/include/asm-m68k/atomic.h
- Orig date:
Fri Nov 20 11:43:55 1998
diff -u --recursive --new-file v2.4.6/linux/include/asm-m68k/atomic.h linux/include/asm-m68k/atomic.h
@@ -49,4 +49,10 @@
#define atomic_set_mask(mask, v) \
__asm__ __volatile__("orl %1,%0" : "=m" (*v) : "id" (mask),"0"(*v))
+/* 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 /* __ARCH_M68K_ATOMIC __ */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)