Skip to content

Commit 4aef66c

Browse files
Peter ZijlstraIngo Molnar
authored andcommitted
locking/atomic, arch/arc: Fix build
Resolve conflict between commits: fbffe89 ("locking/atomic, arch/arc: Implement atomic_fetch_{add,sub,and,andnot,or,xor}()") and: ed6aefe ("Revert "ARCv2: spinlock/rwlock/atomics: Delayed retry of failed SCOND with exponential backoff"") Reported-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Nigel Topham <ntopham@synopsys.com> Cc: Noam Camus <noamc@ezchip.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Vineet Gupta <vgupta@synopsys.com> Cc: linux-kernel@vger.kernel.org Cc: linux-snps-arc@lists.infradead.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 86a3b5f commit 4aef66c

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

arch/arc/include/asm/atomic.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ static inline int atomic_##op##_return(int i, atomic_t *v) \
7171
static inline int atomic_fetch_##op(int i, atomic_t *v) \
7272
{ \
7373
unsigned int val, orig; \
74-
SCOND_FAIL_RETRY_VAR_DEF \
7574
\
7675
/* \
7776
* Explicit full memory barrier needed before/after as \
@@ -84,11 +83,8 @@ static inline int atomic_fetch_##op(int i, atomic_t *v) \
8483
" " #asm_op " %[val], %[orig], %[i] \n" \
8584
" scond %[val], [%[ctr]] \n" \
8685
" \n" \
87-
SCOND_FAIL_RETRY_ASM \
88-
\
8986
: [val] "=&r" (val), \
9087
[orig] "=&r" (orig) \
91-
SCOND_FAIL_RETRY_VARS \
9288
: [ctr] "r" (&v->counter), \
9389
[i] "ir" (i) \
9490
: "cc"); \
@@ -199,10 +195,6 @@ ATOMIC_OPS(andnot, &= ~, bic)
199195
ATOMIC_OPS(or, |=, or)
200196
ATOMIC_OPS(xor, ^=, xor)
201197

202-
#undef SCOND_FAIL_RETRY_VAR_DEF
203-
#undef SCOND_FAIL_RETRY_ASM
204-
#undef SCOND_FAIL_RETRY_VARS
205-
206198
#else /* CONFIG_ARC_PLAT_EZNPS */
207199

208200
static inline int atomic_read(const atomic_t *v)

0 commit comments

Comments
 (0)