1 Jun 2011 16:32
[PATCH] asm-generic: add another generic ext2 atomic bitops
Akinobu Mita <akinobu.mita <at> gmail.com>
2011-06-01 14:32:16 GMT
2011-06-01 14:32:16 GMT
The majority of architectures implement ext2 atomic bitops as
test_and_{set,clear}_bit() without spinlock.
This adds this type of generic implementation in ext2-atomic.h and
use it wherever possible.
Suggested-by: Andreas Dilger <adilger <at> dilger.ca>
Signed-off-by: Akinobu Mita <akinobu.mita <at> gmail.com>
Cc: Arnd Bergmann <arnd <at> arndb.de>
Cc: linux-arch <at> vger.kernel.org
---
arch/alpha/include/asm/bitops.h | 4 ++--
arch/arm/include/asm/bitops.h | 6 ++----
arch/cris/include/asm/bitops.h | 4 ++--
arch/frv/include/asm/bitops.h | 4 ++--
arch/ia64/include/asm/bitops.h | 4 ++--
arch/m68k/include/asm/bitops_mm.h | 6 ++----
arch/mn10300/include/asm/bitops.h | 8 ++------
arch/parisc/include/asm/bitops.h | 10 ++--------
arch/powerpc/include/asm/bitops.h | 6 ++----
arch/s390/include/asm/bitops.h | 6 ++----
arch/sparc/include/asm/bitops_64.h | 6 ++----
arch/tile/include/asm/bitops_64.h | 6 ++----
arch/x86/include/asm/bitops.h | 6 ++----
arch/xtensa/include/asm/bitops.h | 15 ++-------------
include/asm-generic/bitops/ext2-atomic.h | 9 +++++++++
15 files changed, 37 insertions(+), 63 deletions(-)
diff --git a/arch/alpha/include/asm/bitops.h b/arch/alpha/include/asm/bitops.h
index 85b8152..e7f02c6 100644
(Continue reading)
> Signed-off-by: Ralf Baechle <ralf <at> linux-mips.org>
> To: linux-kernel <at> vger.kernel.org
> Cc: linux-arm-kernel <at> lists.infradead.org
> Cc: Russell King <linux <at> arm.linux.org.uk>
> Cc: linux-mips <at> linux-mips.org
> Cc: Thomas Gleixner <tglx <at> linutronix.de>
> Cc: Ingo Molnar <mingo <at> redhat.com>
> Cc: "H. Peter Anvin" <hpa <at> zytor.com>
> Cc: x86 <at> kernel.org
WBR, Sergei
RSS Feed