]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7811/1: locks: use early clobber in arch_spin_trylock
authorWill Deacon <will.deacon@arm.com>
Mon, 12 Aug 2013 17:03:26 +0000 (18:03 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 13 Aug 2013 19:22:43 +0000 (20:22 +0100)
commit786d2b0fd05d46ba22d34be7a68c0c6ce4c3cff6
treeb266adc9aebcda0a7eccd7adbd07a4a5aab3ceee
parentc743b16014e43d919b909df55f06b141a2470208
ARM: 7811/1: locks: use early clobber in arch_spin_trylock

The res variable is written before we've finished with the input
operands (namely the lock address), so ensure that we mark it as `early
clobber' to avoid unintended register sharing.

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