]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
sparc64: Add a comment about why we only use certain memory barriers these days.
authorDavid S. Miller <davem@davemloft.net>
Fri, 6 Nov 2009 04:24:33 +0000 (20:24 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Nov 2009 04:24:33 +0000 (20:24 -0800)
Based upon feedback from Mathieu Desnoyers.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/system_64.h

index 25e848f0cad783281e5d6c251e02ed7f45d6ebcb..d47a98e66972021afff27a0c4aeb0679855eaf81 100644 (file)
@@ -63,6 +63,10 @@ do { __asm__ __volatile__("ba,pt     %%xcc, 1f\n\t" \
                             : : : "memory"); \
 } while (0)
 
+/* The kernel always executes in TSO memory model these days,
+ * and furthermore most sparc64 chips implement more stringent
+ * memory ordering than required by the specifications.
+ */
 #define mb()   membar_safe("#StoreLoad")
 #define rmb()  __asm__ __volatile__("":::"memory")
 #define wmb()  __asm__ __volatile__("":::"memory")