summaryrefslogtreecommitdiffstats
path: root/arch/frv/lib/atomic-ops.S
diff options
context:
space:
mode:
Diffstat (limited to 'arch/frv/lib/atomic-ops.S')
-rw-r--r--arch/frv/lib/atomic-ops.S3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/frv/lib/atomic-ops.S b/arch/frv/lib/atomic-ops.S
index ee0ac90..5e9e6ab 100644
--- a/arch/frv/lib/atomic-ops.S
+++ b/arch/frv/lib/atomic-ops.S
@@ -163,11 +163,10 @@ __cmpxchg_32:
ld.p @(gr11,gr0),gr8
orcr cc7,cc7,cc3
subcc gr8,gr9,gr7,icc0
- bne icc0,#0,1f
+ bnelr icc0,#0
cst.p gr10,@(gr11,gr0) ,cc3,#1
corcc gr29,gr29,gr0 ,cc3,#1
beq icc3,#0,0b
-1:
bralr
.size __cmpxchg_32, .-__cmpxchg_32
OpenPOWER on IntegriCloud