summaryrefslogtreecommitdiff
path: root/arch/arm/kernel
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2013-06-05 11:27:26 +0100
committerNitin Garg <nitin.garg@freescale.com>2014-04-01 21:28:16 -0500
commita5cbdd736e6d8fd7550fedd1e6e9395c12dc84e2 (patch)
treedd620cee26a24866a0a343089dad19f934f65b5f /arch/arm/kernel
parent7c036c236b4e8e90d986f393a53de736614461f1 (diff)
ARM: 7749/1: spinlock: retry trylock operation if strex fails on free lock
commit 15e7e5c1ebf556cd620c9b091e121091ac760f6d upstream. An exclusive store instruction may fail for reasons other than lock contention (e.g. a cache eviction during the critical section) so, in line with other architectures using similar exclusive instructions (alpha, mips, powerpc), retry the trylock operation if the lock appears to be free but the strex reported failure. Reported-by: Tony Thompson <anthony.thompson@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Cc: Li Zefan <lizefan@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/arm/kernel')
0 files changed, 0 insertions, 0 deletions