Commit 0664996b authored by Akinobu Mita's avatar Akinobu Mita Committed by Linus Torvalds
Browse files

bitops: introduce CONFIG_GENERIC_FIND_BIT_LE



This introduces CONFIG_GENERIC_FIND_BIT_LE to tell whether to use generic
implementation of find_*_bit_le() in lib/find_next_bit.c or not.

For now we select CONFIG_GENERIC_FIND_BIT_LE for all architectures which
enable CONFIG_GENERIC_FIND_NEXT_BIT.

But m68knommu wants to define own faster find_next_zero_bit_le() and
continues using generic find_next_{,zero_}bit().
(CONFIG_GENERIC_FIND_NEXT_BIT and !CONFIG_GENERIC_FIND_BIT_LE)

Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Cc: Greg Ungerer <gerg@uclinux.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 3f5527fe
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -22,6 +22,10 @@ config GENERIC_FIND_NEXT_BIT
	bool
	default y

config GENERIC_FIND_BIT_LE
	bool
	default y

config GENERIC_HWEIGHT
	bool
	default y
+4 −0
Original line number Diff line number Diff line
@@ -45,6 +45,10 @@ config GENERIC_FIND_NEXT_BIT
	bool
	default y

config GENERIC_FIND_BIT_LE
	bool
	default y

config GENERIC_HWEIGHT
	bool
	default y
+4 −0
Original line number Diff line number Diff line
@@ -260,6 +260,10 @@ config GENERIC_FIND_NEXT_BIT
	bool
	default y

config GENERIC_FIND_BIT_LE
	bool
	default y

config GENERIC_HWEIGHT
	bool
	default y
+4 −0
Original line number Diff line number Diff line
@@ -42,6 +42,10 @@ config GENERIC_FIND_NEXT_BIT
	bool
	default y

config GENERIC_FIND_BIT_LE
	bool
	default y

config GENERIC_GPIO
	bool
	default n
+3 −0
Original line number Diff line number Diff line
@@ -37,6 +37,9 @@ config ARCH_HAS_ILOG2_U64
config GENERIC_FIND_NEXT_BIT
	def_bool y

config GENERIC_FIND_BIT_LE
	def_bool y

config GENERIC_HWEIGHT
	def_bool y

Loading