aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-generic
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2011-03-23 19:42:02 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-03-23 22:46:15 -0400
commit861b5ae7cde96ca081914e21dedfa7e8a38da622 (patch)
tree376cae55475cce2bb45b96213b1f91b330db0448 /include/asm-generic
parentc1e6ca7a501f0139e5ec2a01f8420eeb21c97a52 (diff)
bitops: introduce little-endian bitops for most architectures
Introduce little-endian bit operations to the big-endian architectures which do not have native little-endian bit operations and the little-endian architectures. (alpha, avr32, blackfin, cris, frv, h8300, ia64, m32r, mips, mn10300, parisc, sh, sparc, tile, x86, xtensa) These architectures can just include generic implementation (asm-generic/bitops/le.h). Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Cc: Richard Henderson <rth@twiddle.net> Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru> Cc: Mikael Starvik <starvik@axis.com> Cc: David Howells <dhowells@redhat.com> Cc: Yoshinori Sato <ysato@users.sourceforge.jp> Cc: "Luck, Tony" <tony.luck@intel.com> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: Kyle McMartin <kyle@mcmartin.ca> Cc: Matthew Wilcox <willy@debian.org> Cc: Grant Grundler <grundler@parisc-linux.org> Cc: Paul Mundt <lethal@linux-sh.org> Cc: Kazumoto Kojima <kkojima@rr.iij4u.or.jp> Cc: Hirokazu Takata <takata@linux-m32r.org> Cc: "David S. Miller" <davem@davemloft.net> Cc: Chris Zankel <chris@zankel.net> Cc: Ingo Molnar <mingo@elte.hu> Cc: Thomas Gleixner <tglx@linutronix.de> Acked-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com> Acked-by: "H. Peter Anvin" <hpa@zytor.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-generic')
-rw-r--r--include/asm-generic/bitops.h1
-rw-r--r--include/asm-generic/bitops/ext2-non-atomic.h2
-rw-r--r--include/asm-generic/bitops/minix-le.h2
3 files changed, 1 insertions, 4 deletions
diff --git a/include/asm-generic/bitops.h b/include/asm-generic/bitops.h
index a54f4421a24d..933710b06e82 100644
--- a/include/asm-generic/bitops.h
+++ b/include/asm-generic/bitops.h
@@ -38,6 +38,7 @@
38 38
39#include <asm-generic/bitops/atomic.h> 39#include <asm-generic/bitops/atomic.h>
40#include <asm-generic/bitops/non-atomic.h> 40#include <asm-generic/bitops/non-atomic.h>
41#include <asm-generic/bitops/le.h>
41#include <asm-generic/bitops/ext2-non-atomic.h> 42#include <asm-generic/bitops/ext2-non-atomic.h>
42#include <asm-generic/bitops/ext2-atomic.h> 43#include <asm-generic/bitops/ext2-atomic.h>
43#include <asm-generic/bitops/minix.h> 44#include <asm-generic/bitops/minix.h>
diff --git a/include/asm-generic/bitops/ext2-non-atomic.h b/include/asm-generic/bitops/ext2-non-atomic.h
index ba27bbe755a2..ad0a244787f6 100644
--- a/include/asm-generic/bitops/ext2-non-atomic.h
+++ b/include/asm-generic/bitops/ext2-non-atomic.h
@@ -1,8 +1,6 @@
1#ifndef _ASM_GENERIC_BITOPS_EXT2_NON_ATOMIC_H_ 1#ifndef _ASM_GENERIC_BITOPS_EXT2_NON_ATOMIC_H_
2#define _ASM_GENERIC_BITOPS_EXT2_NON_ATOMIC_H_ 2#define _ASM_GENERIC_BITOPS_EXT2_NON_ATOMIC_H_
3 3
4#include <asm-generic/bitops/le.h>
5
6#define ext2_set_bit(nr,addr) \ 4#define ext2_set_bit(nr,addr) \
7 __test_and_set_bit_le((nr), (unsigned long *)(addr)) 5 __test_and_set_bit_le((nr), (unsigned long *)(addr))
8#define ext2_clear_bit(nr,addr) \ 6#define ext2_clear_bit(nr,addr) \
diff --git a/include/asm-generic/bitops/minix-le.h b/include/asm-generic/bitops/minix-le.h
index 854e9489f62d..70f95eef4161 100644
--- a/include/asm-generic/bitops/minix-le.h
+++ b/include/asm-generic/bitops/minix-le.h
@@ -1,8 +1,6 @@
1#ifndef _ASM_GENERIC_BITOPS_MINIX_LE_H_ 1#ifndef _ASM_GENERIC_BITOPS_MINIX_LE_H_
2#define _ASM_GENERIC_BITOPS_MINIX_LE_H_ 2#define _ASM_GENERIC_BITOPS_MINIX_LE_H_
3 3
4#include <asm-generic/bitops/le.h>
5
6#define minix_test_and_set_bit(nr,addr) \ 4#define minix_test_and_set_bit(nr,addr) \
7 __test_and_set_bit_le((nr), (unsigned long *)(addr)) 5 __test_and_set_bit_le((nr), (unsigned long *)(addr))
8#define minix_set_bit(nr,addr) \ 6#define minix_set_bit(nr,addr) \