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

* [PATCH] MIPS: Remove CONFIG_ARCH_HAS_ILOG2_U{32,64}
  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
  1 sibling, 0 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

* Re: [PATCH] MIPS: Remove CONFIG_ARCH_HAS_ILOG2_U{32,64}
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Ralf Baechle @ 2017-04-12 19:50 UTC (permalink / raw)
  To: Paul Burton; +Cc: linux-mips, trivial

Thanks, applied.

  Ralf

On Thu, Mar 30, 2017 at 01:51:59PM -0700, Paul Burton wrote:
> Date:   Thu, 30 Mar 2017 13:51:59 -0700
> From: Paul Burton <paul.burton@imgtec.com>
> To: Ralf Baechle <ralf@linux-mips.org>, linux-mips@linux-mips.org
> CC: Paul Burton <paul.burton@imgtec.com>, trivial@kernel.org
> Subject: [PATCH] MIPS: Remove CONFIG_ARCH_HAS_ILOG2_U{32,64}
> Content-Type: text/plain
> 
> 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	[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).