aboutsummaryrefslogtreecommitdiff
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
parent7d3628b230ecbdc29566c18bc7800ff8ed66a71f (diff)
parent4cfea5a7dfcc2766251e50ca30271a782d5004ad (diff)
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.
-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 dadd6c385c6..fa1fdf67e35 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; \