ARM: 7854/1: lockref: add support for lockless lockrefs using cmpxchg64
authorWill Deacon <will.deacon@arm.com>
Wed, 9 Oct 2013 16:19:22 +0000 (17:19 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 29 Oct 2013 11:06:11 +0000 (11:06 +0000)
Our spinlocks are only 32-bit (2x16-bit tickets) and, on processors
with 64-bit atomic instructions, cmpxchg64 makes use of the double-word
exclusive accessors.

This patch wires up the cmpxchg-based lockless lockref implementation
for ARM.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

No differences found