aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-arm/locks.h
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2005-07-24 07:13:40 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2005-07-24 07:13:40 -0400
commit4e8fd22bd421d7aa279bcb76189505a1f96bb7bf (patch)
treef23106b362b242eec555b16b34f8ad22f035c65a /include/asm-arm/locks.h
parent2c2a68b84752cb1090fd2456e8b83e5bcc0e73c4 (diff)
[PATCH] ARM SMP: Fix ARMv6 spinlock and semaphore implementations
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/asm-arm/locks.h')
-rw-r--r--include/asm-arm/locks.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-arm/locks.h b/include/asm-arm/locks.h
index c26298f3891f..9cb33fcc06c1 100644
--- a/include/asm-arm/locks.h
+++ b/include/asm-arm/locks.h
@@ -61,7 +61,7 @@
61" strex ip, lr, [%0]\n" \ 61" strex ip, lr, [%0]\n" \
62" teq ip, #0\n" \ 62" teq ip, #0\n" \
63" bne 1b\n" \ 63" bne 1b\n" \
64" teq lr, #0\n" \ 64" cmp lr, #0\n" \
65" movle ip, %0\n" \ 65" movle ip, %0\n" \
66" blle " #wake \ 66" blle " #wake \
67 : \ 67 : \
@@ -100,7 +100,7 @@
100 __asm__ __volatile__( \ 100 __asm__ __volatile__( \
101 "@ up_op_read\n" \ 101 "@ up_op_read\n" \
102"1: ldrex lr, [%0]\n" \ 102"1: ldrex lr, [%0]\n" \
103" add lr, lr, %1\n" \ 103" adds lr, lr, %1\n" \
104" strex ip, lr, [%0]\n" \ 104" strex ip, lr, [%0]\n" \
105" teq ip, #0\n" \ 105" teq ip, #0\n" \
106" bne 1b\n" \ 106" bne 1b\n" \