linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] MIPS: Remove CONFIG_ARCH_HAS_ILOG2_U{32,64}
@ 2017-03-30 20:51 Paul Burton
  2017-03-30 20:51 ` Paul Burton
  2017-04-12 19:50 ` Ralf Baechle
  0 siblings, 2 replies; 3+ messages in thread
From: Paul Burton @ 2017-03-30 20:51 UTC (permalink / raw)
  To: Ralf Baechle, linux-mips; +Cc: Paul Burton, trivial

We declare CONFIG_ARCH_HAS_ILOG2_U32 & CONFIG_ARCH_HAS_ILOG2_U64 in
Kconfig, but they are always false since nothing ever selects them. The
generic fls-based implementation is efficient for MIPS anyway. Remove
the redundant Kconfig entries.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Cc: trivial@kernel.org

---

 arch/mips/Kconfig | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index a008a9f03072..33bc84ffd6b2 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -1040,14 +1040,6 @@ config RWSEM_GENERIC_SPINLOCK
 config RWSEM_XCHGADD_ALGORITHM
 	bool
 
-config ARCH_HAS_ILOG2_U32
-	bool
-	default n
-
-config ARCH_HAS_ILOG2_U64
-	bool
-	default n
-
 config GENERIC_HWEIGHT
 	bool
 	default y
-- 
2.12.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-04-12 19:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-30 20:51 [PATCH] MIPS: Remove CONFIG_ARCH_HAS_ILOG2_U{32,64} Paul Burton
2017-03-30 20:51 ` Paul Burton
2017-04-12 19:50 ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).