Commit 4cfea5a7 authored by David S. Miller's avatar David S. Miller

[SPARC64]: Fix atomic backoff limit.

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: default avatarDavid S. Miller <davem@davemloft.net>
parent f0e98c38
...@@ -12,7 +12,8 @@ ...@@ -12,7 +12,8 @@
mov reg, tmp; \ mov reg, tmp; \
88: brnz,pt tmp, 88b; \ 88: brnz,pt tmp, 88b; \
sub tmp, 1, tmp; \ sub tmp, 1, tmp; \
cmp reg, BACKOFF_LIMIT; \ set BACKOFF_LIMIT, tmp; \
cmp reg, tmp; \
bg,pn %xcc, label; \ bg,pn %xcc, label; \
nop; \ nop; \
ba,pt %xcc, label; \ ba,pt %xcc, label; \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment