Skip to content
Commit 15e7e5c1 authored by Will Deacon's avatar Will Deacon Committed by Russell King
Browse files

ARM: 7749/1: spinlock: retry trylock operation if strex fails on free lock



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: default avatarTony Thompson <anthony.thompson@arm.com>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 1aa2b3b7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment