m68knommu: use asm-generic/bitops/ext2-atomic.h
authorAkinobu Mita <akinobu.mita@gmail.com>
Sun, 17 Apr 2011 13:57:29 +0000 (22:57 +0900)
committerGreg Ungerer <gerg@uclinux.org>
Tue, 24 May 2011 05:17:20 +0000 (15:17 +1000)
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>
arch/m68k/include/asm/bitops_no.h

index 7d3779fdc5b6ffa68c6b7374fa106cbb50fd4bb8..6b0e2d349f0eb2439c0f6663fd643944e3707394 100644 (file)
@@ -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)
 {