commit | 4e39715f4b5cb3b44576fedb2d38aca87de3cf48 | [log] [tgz] |
---|---|---|
author | Will Deacon <will.deacon@arm.com> | Fri May 29 14:47:59 2015 +0100 |
committer | Will Deacon <will.deacon@arm.com> | Mon Jul 27 15:28:52 2015 +0100 |
tree | 1e4c60ef5714188ba60fe309c7feada21dcff076 | |
parent | 0bc671d3f4bee9c31110d096ada0de52380e693d [diff] |
arm64: cmpxchg: avoid memory barrier on comparison failure cmpxchg doesn't require memory barrier semantics when the value comparison fails, so make the barrier conditional on success. Reviewed-by: Steve Capper <steve.capper@arm.com> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>