summaryrefslogtreecommitdiffstats
path: root/arch/m68k/include/asm
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2011-04-17 15:57:29 +0200
committerGreg Ungerer <gerg@uclinux.org>2011-05-24 07:17:20 +0200
commit48e1328e06dd9bd7a4932ee47428475963ea55b0 (patch)
tree6592a23bf5c176ad8528bb565e4dfec9886de4fa /arch/m68k/include/asm
parentm68knommu: Remove obsolete #include <linux/sys.h> (diff)
downloadlinux-48e1328e06dd9bd7a4932ee47428475963ea55b0.tar.xz
linux-48e1328e06dd9bd7a4932ee47428475963ea55b0.zip
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>
Diffstat (limited to 'arch/m68k/include/asm')
-rw-r--r--arch/m68k/include/asm/bitops_no.h18
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)
{