diff options
author | Nicolas Pitre <nico@cam.org> | 2005-11-16 15:05:11 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2005-11-16 15:05:11 +0000 |
commit | a7d068336197945dc4af65c5973c996e526d51cb (patch) | |
tree | cbe903bef21fce0d5923cc83071b7b66d00d94c4 /arch/m68knommu/lib | |
parent | 224b5be6ddc12fa7587433878866cd39e7b935f5 (diff) | |
download | blackbird-op-linux-a7d068336197945dc4af65c5973c996e526d51cb.tar.gz blackbird-op-linux-a7d068336197945dc4af65c5973c996e526d51cb.zip |
[ARM] 3165/1: fix atomic_cmpxchg() implementation for ARMv6+
Patch from Nicolas Pitre
If 'old' and 'oldval' are different then 'res' never gets set. In that
case, if ever %0 happened to contain anything but zero (rather likely)
then the code will loop forever (or until another CPU just come along
and change the atomic value to match 'old' which is rather unlikely).
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/m68knommu/lib')
0 files changed, 0 insertions, 0 deletions