Commit 48e1328e06dd9bd7a4932ee47428475963ea55b0
Committed by
Greg Ungerer
1 parent
b60de9f514
Exists in
master
and in
7 other branches
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>
Showing 1 changed file with 1 additions and 17 deletions Side-by-side Diff
arch/m68k/include/asm/bitops_no.h
... | ... | @@ -246,23 +246,7 @@ |
246 | 246 | return retval; |
247 | 247 | } |
248 | 248 | |
249 | -#define ext2_set_bit_atomic(lock, nr, addr) \ | |
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 | - }) | |
249 | +#include <asm-generic/bitops/ext2-atomic.h> | |
266 | 250 | |
267 | 251 | static inline int test_bit_le(int nr, const volatile void *addr) |
268 | 252 | { |