]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7812/1: rwlocks: retry trylock operation if strex fails on free lock
authorWill Deacon <will.deacon@arm.com>
Mon, 12 Aug 2013 17:04:05 +0000 (18:04 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 13 Aug 2013 19:22:44 +0000 (20:22 +0100)
commita75520b73da40a38e1ab9b74ea3fa082b784b7b3
tree2d3f9322f15171499a6b579a1a06d6497dc5ba08
parenta742a0877beafd0f7ff85bdec96b4c72479a03a4
ARM: 7812/1: rwlocks: retry trylock operation if strex fails on free lock

Commit 08d00a4c3893 ("ARM: 7749/1: spinlock: retry trylock operation if
strex fails on free lock") modifying our arch_spin_trylock to retry the
acquisition if the lock appeared uncontended, but the strex failed.

This patch does the same for rwlocks, which were missed by the original
patch.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/spinlock.h