diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/microblaze/atomic.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/arch/microblaze/atomic.h b/arch/microblaze/atomic.h index 818bcc0d..90fcd8b6 100644 --- a/arch/microblaze/atomic.h +++ b/arch/microblaze/atomic.h @@ -22,19 +22,6 @@ static inline int a_ctz_64(uint64_t x) return a_ctz_l(y); } -static inline int a_cas_1(volatile int *p, int t, int s) -{ - register int tmp; - do { - __asm__ __volatile__ ("lwx %0, %1, r0" - : "=r"(tmp) : "r"(p) : "memory"); - if (tmp != t) return tmp; - __asm__ __volatile__ ("swx %2, %1, r0 ; addic %0, r0, 0" - : "=r"(tmp) : "r"(p), "r"(s) : "cc", "memory"); - } while (tmp); - return t; -} - static inline int a_cas(volatile int *p, int t, int s) { register int old, tmp; |