projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0e98c3
)
[SPARC64]: Fix atomic backoff limit.
author
David S. Miller
<davem@davemloft.net>
Wed, 19 Mar 2008 08:04:48 +0000
(
01:04
-0700)
committer
David S. Miller
<davem@davemloft.net>
Wed, 19 Mar 2008 08:04:48 +0000
(
01:04
-0700)
4096 will not fit into the immediate field of a compare instruction,
in fact it will end up being -4096 causing the check to fail every
time and thus disabling backoff.
Signed-off-by: David S. Miller <davem@davemloft.net>
include/asm-sparc64/backoff.h
patch
|
blob
|
blame
|
history
diff --git
a/include/asm-sparc64/backoff.h
b/include/asm-sparc64/backoff.h
index dadd6c385c6c0f31bb6c40f0b27af1e478e90d2a..fa1fdf67e350e07d950107289f25bdf3c41a73b3 100644
(file)
--- 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; \