summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2011-04-17 22:57:29 +0900
committerGreg Ungerer <gerg@uclinux.org>2011-05-24 15:17:20 +1000
commit48e1328e06dd9bd7a4932ee47428475963ea55b0 (patch)
tree6592a23bf5c176ad8528bb565e4dfec9886de4fa /arch
parentb60de9f5142ffc677e4e1bf0d1e8ad177d21095f (diff)
downloadop-kernel-dev-48e1328e06dd9bd7a4932ee47428475963ea55b0.zip
op-kernel-dev-48e1328e06dd9bd7a4932ee47428475963ea55b0.tar.gz
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')
-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 7d3779f..6b0e2d3 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)
{
OpenPOWER on IntegriCloud