lwsync allows prior stores to be reordered against following loads.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I288900d3546779ee80d14a3d8d02c43d7b1c0e8c
* instructions for cmpxchg and add_return family of atomic primitives.
*
* This is achieved with:
* instructions for cmpxchg and add_return family of atomic primitives.
*
* This is achieved with:
- * lwsync (prior loads can be reordered after following load)
+ * lwsync (prior stores can be reordered after following loads)
* lwarx
* stwcx.
* test if success (retry)
* lwarx
* stwcx.
* test if success (retry)