summaryrefslogtreecommitdiffstats
path: root/include/asm-sparc64/rwsem.h
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@pobox.com>2005-06-28 00:46:58 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-06-28 00:46:58 -0400
commitd011e151bc5d1a581bf35b492a4fde44d30382b9 (patch)
treea912c745d3093127a767b7456c46c517bdc0baf7 /include/asm-sparc64/rwsem.h
parent30b4d6565e4d57c6d03600c7822411c7cac19638 (diff)
parent2179a59db18ddf8eb3fd0133a3bee57f1c2b5b06 (diff)
downloadkernel-crypto-d011e151bc5d1a581bf35b492a4fde44d30382b9.tar.gz
kernel-crypto-d011e151bc5d1a581bf35b492a4fde44d30382b9.tar.xz
kernel-crypto-d011e151bc5d1a581bf35b492a4fde44d30382b9.zip
Merge /spare/repo/netdev-2.6 branch 'ieee80211'
Diffstat (limited to 'include/asm-sparc64/rwsem.h')
-rw-r--r--include/asm-sparc64/rwsem.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-sparc64/rwsem.h b/include/asm-sparc64/rwsem.h
index bf2ae90ed3d..a1cc94f9598 100644
--- a/include/asm-sparc64/rwsem.h
+++ b/include/asm-sparc64/rwsem.h
@@ -55,8 +55,9 @@ static __inline__ int rwsem_atomic_update(int delta, struct rw_semaphore *sem)
"add %%g1, %1, %%g7\n\t"
"cas [%2], %%g1, %%g7\n\t"
"cmp %%g1, %%g7\n\t"
+ "membar #StoreLoad | #StoreStore\n\t"
"bne,pn %%icc, 1b\n\t"
- " membar #StoreLoad | #StoreStore\n\t"
+ " nop\n\t"
"mov %%g7, %0\n\t"
: "=&r" (tmp)
: "0" (tmp), "r" (sem)