patch-2.4.8 linux/include/asm-cris/atomic.h
Next file: linux/include/asm-cris/axisflashmap.h
Previous file: linux/fs/super.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Thu Jul 26 15:10:06 2001
- Orig file:
v2.4.7/linux/include/asm-cris/atomic.h
- Orig date:
Thu Feb 8 16:32:44 2001
diff -u --recursive --new-file v2.4.7/linux/include/asm-cris/atomic.h linux/include/asm-cris/atomic.h
@@ -1,4 +1,4 @@
-/* $Id: atomic.h,v 1.2 2000/07/13 16:51:57 bjornw Exp $ */
+/* $Id: atomic.h,v 1.3 2001/07/25 16:15:19 bjornw Exp $ */
#ifndef __ASM_CRIS_ATOMIC__
#define __ASM_CRIS_ATOMIC__
@@ -138,5 +138,11 @@
restore_flags(flags);
return retval;
}
+
+/* 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
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)