commit d08242303cea836fd2587d776e5c743b3e02ae2a
Author: David S. Miller <[EMAIL PROTECTED]>
Date:   Mon Apr 7 00:25:20 2008 -0700

    SPARC64: Fix atomic backoff limit.
    
    Upstream commit: 4cfea5a7dfcc2766251e50ca30271a782d5004ad
    
    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 <[EMAIL PROTECTED]>
    Signed-off-by: Chris Wright <[EMAIL PROTECTED]>

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; \
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to