mbox series

[0/2] arch: enable GENERIC_FIND_FIRST_BIT for MIPS and ARM64

Message ID 20210225135700.1381396-1-yury.norov@gmail.com (mailing list archive)
Headers show
Series arch: enable GENERIC_FIND_FIRST_BIT for MIPS and ARM64 | expand

Message

Yury Norov Feb. 25, 2021, 1:56 p.m. UTC
MIPS and ARM64 don't implement find_first_{zero}_bit in arch code and
don't enable it in config. It leads to using find_next_bit() which is
less efficient:

It's beneficial to enable GENERIC_FIND_FIRST_BIT as this functionality
is not new at all and well-tested. It provides more optimized code and
saves .text memory:

Alexander Lobakin (1):
  MIPS: enable GENERIC_FIND_FIRST_BIT

Yury Norov (1):
  arm64: enable GENERIC_FIND_FIRST_BIT

 arch/arm64/Kconfig | 1 +
 arch/mips/Kconfig  | 1 +
 2 files changed, 2 insertions(+)

Comments

Catalin Marinas March 15, 2021, 7:14 p.m. UTC | #1
On Thu, 25 Feb 2021 05:56:58 -0800, Yury Norov wrote:
> MIPS and ARM64 don't implement find_first_{zero}_bit in arch code and
> don't enable it in config. It leads to using find_next_bit() which is
> less efficient:
> 
> It's beneficial to enable GENERIC_FIND_FIRST_BIT as this functionality
> is not new at all and well-tested. It provides more optimized code and
> saves .text memory:
> 
> [...]

Applied to arm64 (for-next/misc), thanks!

[1/2] ARM64: enable GENERIC_FIND_FIRST_BIT
      https://git.kernel.org/arm64/c/98c5ec77c7c5