GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / arch / sparc / include / asm / backoff.h
blobdb3af0d30fb10129124c594d1f1195bb59f2a6f2
1 #ifndef _SPARC64_BACKOFF_H
2 #define _SPARC64_BACKOFF_H
4 #define BACKOFF_LIMIT (4 * 1024)
6 #ifdef CONFIG_SMP
8 #define BACKOFF_SETUP(reg) \
9 mov 1, reg
11 #define BACKOFF_LABEL(spin_label, continue_label) \
12 spin_label
14 #define BACKOFF_SPIN(reg, tmp, label) \
15 mov reg, tmp; \
16 88: brnz,pt tmp, 88b; \
17 sub tmp, 1, tmp; \
18 set BACKOFF_LIMIT, tmp; \
19 cmp reg, tmp; \
20 bg,pn %xcc, label; \
21 nop; \
22 ba,pt %xcc, label; \
23 sllx reg, 1, reg;
25 #else
27 #define BACKOFF_SETUP(reg)
29 #define BACKOFF_LABEL(spin_label, continue_label) \
30 continue_label
32 #define BACKOFF_SPIN(reg, tmp, label)
34 #endif
36 #endif /* _SPARC64_BACKOFF_H */