diff options
Diffstat (limited to 'arch/tile/include/asm/atomic.h')
-rw-r--r-- | arch/tile/include/asm/atomic.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/tile/include/asm/atomic.h b/arch/tile/include/asm/atomic.h index 739cfe0499d1..e3272715c3cb 100644 --- a/arch/tile/include/asm/atomic.h +++ b/arch/tile/include/asm/atomic.h | |||
@@ -121,15 +121,6 @@ static inline int atomic_read(const atomic_t *v) | |||
121 | */ | 121 | */ |
122 | #define atomic_add_negative(i, v) (atomic_add_return((i), (v)) < 0) | 122 | #define atomic_add_negative(i, v) (atomic_add_return((i), (v)) < 0) |
123 | 123 | ||
124 | /** | ||
125 | * atomic_inc_not_zero - increment unless the number is zero | ||
126 | * @v: pointer of type atomic_t | ||
127 | * | ||
128 | * Atomically increments @v by 1, so long as @v is non-zero. | ||
129 | * Returns non-zero if @v was non-zero, and zero otherwise. | ||
130 | */ | ||
131 | #define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0) | ||
132 | |||
133 | /* Nonexistent functions intended to cause link errors. */ | 124 | /* Nonexistent functions intended to cause link errors. */ |
134 | extern unsigned long __xchg_called_with_bad_pointer(void); | 125 | extern unsigned long __xchg_called_with_bad_pointer(void); |
135 | extern unsigned long __cmpxchg_called_with_bad_pointer(void); | 126 | extern unsigned long __cmpxchg_called_with_bad_pointer(void); |