]> git.karo-electronics.de Git - karo-tx-linux.git/commit
powerpc: Strengthen value-returning-atomics memory barriers
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sun, 28 Aug 2011 17:35:59 +0000 (10:35 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 13 Sep 2011 15:46:37 +0000 (08:46 -0700)
commit02bfde5587941bd3fa4ead5d5884063d9a93c9ff
tree9bf1a3897fd7048f1e984ffd78cd068a811ad535
parentd9788bfdcd61f0ae17ceb9a058e34835e3a12f1f
powerpc: Strengthen value-returning-atomics memory barriers

The trailing isync/lwsync in PowerPC value-returning atomics needs
to be a sync in order to provide the required ordering properties.
The leading lwsync/eieio can remain, as the remainder of the required
ordering guarantees are provided by the atomic instructions: Any
reordering will cause the stwcx to fail, which will result in a retry.

This commit provides the needed adjustment.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: anton@samba.org
Cc: benh@kernel.crashing.org
Cc: paulus@samba.org
arch/powerpc/include/asm/synch.h