summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-03-21 08:04:28 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2008-03-21 08:04:28 -0700
commitae51801ba5ca27c2c571eb508daa99b392e79bd4 (patch)
tree07f9c2a4cad33791c87211fb43553bf42f6fa4b5 /include
parent7d3628b230ecbdc29566c18bc7800ff8ed66a71f (diff)
parent4cfea5a7dfcc2766251e50ca30271a782d5004ad (diff)
downloadop-kernel-dev-ae51801ba5ca27c2c571eb508daa99b392e79bd4.zip
op-kernel-dev-ae51801ba5ca27c2c571eb508daa99b392e79bd4.tar.gz
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6: [SPARC64]: Fix atomic backoff limit.
Diffstat (limited to 'include')
-rw-r--r--include/asm-sparc64/backoff.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-sparc64/backoff.h b/include/asm-sparc64/backoff.h
index dadd6c3..fa1fdf6 100644
--- a/include/asm-sparc64/backoff.h
+++ b/include/asm-sparc64/backoff.h
@@ -12,7 +12,8 @@
mov reg, tmp; \
88: brnz,pt tmp, 88b; \
sub tmp, 1, tmp; \
- cmp reg, BACKOFF_LIMIT; \
+ set BACKOFF_LIMIT, tmp; \
+ cmp reg, tmp; \
bg,pn %xcc, label; \
nop; \
ba,pt %xcc, label; \
OpenPOWER on IntegriCloud