mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 01:32:21 +02:00
arch: select HAVE_ARCH_BITREVERSE conditionally on BITREVERSE
Architectures may have bit reversal instructions, but if the API not needed, the corresponding option should not be selected because it may lead to generating the unneeded code. Signed-off-by: Yury Norov <ynorov@nvidia.com>
This commit is contained in:
parent
8f4c4562c4
commit
42d9c75e8b
|
|
@ -83,7 +83,7 @@ config ARM
|
|||
select HARDIRQS_SW_RESEND
|
||||
select HAS_IOPORT
|
||||
select HAVE_ARCH_AUDITSYSCALL if AEABI && !OABI_COMPAT
|
||||
select HAVE_ARCH_BITREVERSE if (CPU_32v7M || CPU_32v7) && !CPU_32v6
|
||||
select HAVE_ARCH_BITREVERSE if (CPU_32v7M || CPU_32v7) && !CPU_32v6 && BITREVERSE
|
||||
select HAVE_ARCH_JUMP_LABEL if !XIP_KERNEL && !CPU_ENDIAN_BE32 && MMU && (!PREEMPT_RT || !SMP)
|
||||
select HAVE_ARCH_KFENCE if MMU && !XIP_KERNEL
|
||||
select HAVE_ARCH_KGDB if !CPU_ENDIAN_BE32 && MMU
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@ config ARM64
|
|||
select HAVE_ACPI_APEI if (ACPI && EFI)
|
||||
select HAVE_ALIGNED_STRUCT_PAGE
|
||||
select HAVE_ARCH_AUDITSYSCALL
|
||||
select HAVE_ARCH_BITREVERSE
|
||||
select HAVE_ARCH_BITREVERSE if BITREVERSE
|
||||
select HAVE_ARCH_COMPILER_H
|
||||
select HAVE_ARCH_HUGE_VMALLOC
|
||||
select HAVE_ARCH_HUGE_VMAP
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ config LOONGARCH
|
|||
select HAS_IOPORT
|
||||
select HAVE_ALIGNED_STRUCT_PAGE if 64BIT
|
||||
select HAVE_ARCH_AUDITSYSCALL
|
||||
select HAVE_ARCH_BITREVERSE if 64BIT
|
||||
select HAVE_ARCH_BITREVERSE if 64BIT && BITREVERSE
|
||||
select HAVE_ARCH_JUMP_LABEL
|
||||
select HAVE_ARCH_JUMP_LABEL_RELATIVE
|
||||
select HAVE_ARCH_KASAN if 64BIT
|
||||
|
|
|
|||
|
|
@ -2026,7 +2026,7 @@ config CPU_MIPSR6
|
|||
default y if CPU_MIPS32_R6 || CPU_MIPS64_R6
|
||||
select CPU_HAS_RIXI
|
||||
select CPU_HAS_DIEI if !CPU_DIEI_BROKEN
|
||||
select HAVE_ARCH_BITREVERSE
|
||||
select HAVE_ARCH_BITREVERSE if BITREVERSE
|
||||
select MIPS_ASID_BITS_VARIABLE
|
||||
select MIPS_SPRAM
|
||||
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ config BITREVERSE
|
|||
config HAVE_ARCH_BITREVERSE
|
||||
bool
|
||||
default n
|
||||
depends on BITREVERSE
|
||||
help
|
||||
This option enables the use of hardware bit-reversal instructions on
|
||||
architectures which support such operations.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user