summaryrefslogtreecommitdiffstats
path: root/arch/mips/Kconfig
diff options
context:
space:
mode:
authorAlexander Lobakin <alobakin@pm.me>2021-02-25 14:57:00 +0100
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2021-03-06 08:43:40 +0100
commitbab1dde31db5413d4c75c99cf3f08c4a2e1c1b9d (patch)
treede9e26a9c1e058d183102c89ce6ceb2e85cf4291 /arch/mips/Kconfig
parentMIPS: select CPU_MIPS64 for remaining MIPS64 CPUs (diff)
downloadlinux-bab1dde31db5413d4c75c99cf3f08c4a2e1c1b9d.tar.xz
linux-bab1dde31db5413d4c75c99cf3f08c4a2e1c1b9d.zip
MIPS: enable GENERIC_FIND_FIRST_BIT
MIPS doesn't have architecture-optimized bitsearching functions, like find_{first,next}_bit() etc. It's absolutely harmless to enable GENERIC_FIND_FIRST_BIT as this functionality is not new at all and well-tested. It provides more optimized code and saves some .text memory (32 R2): add/remove: 4/1 grow/shrink: 1/53 up/down: 216/-372 (-156) Users of for_each_set_bit() like hotpath gic_handle_shared_int() will also benefit from this. Suggested-by: Yury Norov <yury.norov@gmail.com> Signed-off-by: Alexander Lobakin <alobakin@pm.me> Signed-off-by: Yury Norov <yury.norov@gmail.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to '')
-rw-r--r--arch/mips/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 3e0e8f1d2e82..f0d412a04f09 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -26,6 +26,7 @@ config MIPS
select GENERIC_ATOMIC64 if !64BIT
select GENERIC_CMOS_UPDATE
select GENERIC_CPU_AUTOPROBE
+ select GENERIC_FIND_FIRST_BIT
select GENERIC_GETTIMEOFDAY
select GENERIC_IOMAP
select GENERIC_IRQ_PROBE