aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/include/asm/spinlock.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/include/asm/spinlock.h b/arch/arm/include/asm/spinlock.h
index 0da2effd4b37..b4ca707d0a69 100644
--- a/arch/arm/include/asm/spinlock.h
+++ b/arch/arm/include/asm/spinlock.h
@@ -182,7 +182,7 @@ static inline int arch_write_trylock(arch_rwlock_t *rw)
182 unsigned long tmp; 182 unsigned long tmp;
183 183
184 __asm__ __volatile__( 184 __asm__ __volatile__(
185"1: ldrex %0, [%1]\n" 185" ldrex %0, [%1]\n"
186" teq %0, #0\n" 186" teq %0, #0\n"
187" strexeq %0, %2, [%1]" 187" strexeq %0, %2, [%1]"
188 : "=&r" (tmp) 188 : "=&r" (tmp)
@@ -268,7 +268,7 @@ static inline int arch_read_trylock(arch_rwlock_t *rw)
268 unsigned long tmp, tmp2 = 1; 268 unsigned long tmp, tmp2 = 1;
269 269
270 __asm__ __volatile__( 270 __asm__ __volatile__(
271"1: ldrex %0, [%2]\n" 271" ldrex %0, [%2]\n"
272" adds %0, %0, #1\n" 272" adds %0, %0, #1\n"
273" strexpl %1, %0, [%2]\n" 273" strexpl %1, %0, [%2]\n"
274 : "=&r" (tmp), "+r" (tmp2) 274 : "=&r" (tmp), "+r" (tmp2)