diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2011-04-17 17:57:29 +0400 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2011-05-24 09:17:20 +0400 |
commit | 48e1328e06dd9bd7a4932ee47428475963ea55b0 (patch) | |
tree | 6592a23bf5c176ad8528bb565e4dfec9886de4fa | |
parent | b60de9f5142ffc677e4e1bf0d1e8ad177d21095f (diff) | |
download | linux-48e1328e06dd9bd7a4932ee47428475963ea55b0.tar.xz |
m68knommu: use asm-generic/bitops/ext2-atomic.h
m68knommu can use generic implementation of ext2 atomic bitops.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
-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) return retval; } -#define ext2_set_bit_atomic(lock, nr, addr) \ - ({ \ - int ret; \ - spin_lock(lock); \ - ret = __test_and_set_bit_le((nr), (addr)); \ - spin_unlock(lock); \ - ret; \ - }) - -#define ext2_clear_bit_atomic(lock, nr, addr) \ - ({ \ - int ret; \ - spin_lock(lock); \ - ret = __test_and_clear_bit_le((nr), (addr)); \ - spin_unlock(lock); \ - ret; \ - }) +#include <asm-generic/bitops/ext2-atomic.h> static inline int test_bit_le(int nr, const volatile void *addr) { |