diff options
-rw-r--r-- | arch/m68k/include/asm/bitops_no.h | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/arch/m68k/include/asm/bitops_no.h b/arch/m68k/include/asm/bitops_no.h index 7d3779fdc5b6..6b0e2d349f0e 100644 --- a/arch/m68k/include/asm/bitops_no.h +++ b/arch/m68k/include/asm/bitops_no.h | |||
@@ -246,23 +246,7 @@ static inline int __test_and_clear_bit_le(int nr, volatile void *addr) | |||
246 | return retval; | 246 | return retval; |
247 | } | 247 | } |
248 | 248 | ||
249 | #define ext2_set_bit_atomic(lock, nr, addr) \ | 249 | #include <asm-generic/bitops/ext2-atomic.h> |
250 | ({ \ | ||
251 | int ret; \ | ||
252 | spin_lock(lock); \ | ||
253 | ret = __test_and_set_bit_le((nr), (addr)); \ | ||
254 | spin_unlock(lock); \ | ||
255 | ret; \ | ||
256 | }) | ||
257 | |||
258 | #define ext2_clear_bit_atomic(lock, nr, addr) \ | ||
259 | ({ \ | ||
260 | int ret; \ | ||
261 | spin_lock(lock); \ | ||
262 | ret = __test_and_clear_bit_le((nr), (addr)); \ | ||
263 | spin_unlock(lock); \ | ||
264 | ret; \ | ||
265 | }) | ||
266 | 250 | ||
267 | static inline int test_bit_le(int nr, const volatile void *addr) | 251 | static inline int test_bit_le(int nr, const volatile void *addr) |
268 | { | 252 | { |