aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arc/include/asm/atomic.h3
-rw-r--r--arch/arc/include/asm/spinlock.h3
2 files changed, 2 insertions, 4 deletions
diff --git a/arch/arc/include/asm/atomic.h b/arch/arc/include/asm/atomic.h
index 629dfd0a0c6b..87d18ae53115 100644
--- a/arch/arc/include/asm/atomic.h
+++ b/arch/arc/include/asm/atomic.h
@@ -34,8 +34,7 @@
34 " mov %[tmp], %[delay] \n" /* tmp = delay */ \ 34 " mov %[tmp], %[delay] \n" /* tmp = delay */ \
35 "2: brne.d %[tmp], 0, 2b \n" /* while (tmp != 0) */ \ 35 "2: brne.d %[tmp], 0, 2b \n" /* while (tmp != 0) */ \
36 " sub %[tmp], %[tmp], 1 \n" /* tmp-- */ \ 36 " sub %[tmp], %[tmp], 1 \n" /* tmp-- */ \
37 " asl.f %[delay], %[delay], 1 \n" /* delay *= 2 */ \ 37 " rol %[delay], %[delay] \n" /* delay *= 2 */ \
38 " mov.z %[delay], 1 \n" /* handle overflow */ \
39 " b 1b \n" /* start over */ \ 38 " b 1b \n" /* start over */ \
40 "4: ; --- success --- \n" \ 39 "4: ; --- success --- \n" \
41 40
diff --git a/arch/arc/include/asm/spinlock.h b/arch/arc/include/asm/spinlock.h
index 7071fc0da56a..db8c59d1eaeb 100644
--- a/arch/arc/include/asm/spinlock.h
+++ b/arch/arc/include/asm/spinlock.h
@@ -260,8 +260,7 @@ static inline void arch_write_unlock(arch_rwlock_t *rw)
260 " mov %[tmp], %[delay] \n" /* tmp = delay */ \ 260 " mov %[tmp], %[delay] \n" /* tmp = delay */ \
261 "2: brne.d %[tmp], 0, 2b \n" /* while (tmp != 0) */ \ 261 "2: brne.d %[tmp], 0, 2b \n" /* while (tmp != 0) */ \
262 " sub %[tmp], %[tmp], 1 \n" /* tmp-- */ \ 262 " sub %[tmp], %[tmp], 1 \n" /* tmp-- */ \
263 " asl.f %[delay], %[delay], 1 \n" /* delay *= 2 */ \ 263 " rol %[delay], %[delay] \n" /* delay *= 2 */ \
264 " mov.z %[delay], 1 \n" /* handle overflow */ \
265 " b 1b \n" /* start over */ \ 264 " b 1b \n" /* start over */ \
266 " \n" \ 265 " \n" \
267 "4: ; --- done --- \n" \ 266 "4: ; --- done --- \n" \