]> Gentwo Git Trees - linux/.git/commitdiff
Kconfig: move ARCH_HAS_OPTIMIZED_POLL to arch/Kconfig
authorJoao Martins <joao.m.martins@oracle.com>
Wed, 25 Sep 2024 23:24:17 +0000 (16:24 -0700)
committerChristoph Lameter <cl@gentwo.org>
Wed, 9 Oct 2024 02:06:42 +0000 (19:06 -0700)
ARCH_HAS_OPTIMIZED_POLL gates selection of polling while idle in
poll_idle(). Move the configuration option to arch/Kconfig to allow
non-x86 architectures to select it.

Note that ARCH_HAS_OPTIMIZED_POLL should probably be exclusive with
GENERIC_IDLE_POLL_SETUP (which controls the generic polling logic in
cpu_idle_poll()). However, that would remove boot options
(hlt=, nohlt=). So, leave it untouched for now.

Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
Signed-off-by: Mihai Carabas <mihai.carabas@oracle.com>
Signed-off-by: Ankur Arora <ankur.a.arora@oracle.com>
Acked-by: Will Deacon <will@kernel.org>
Tested-by: Haris Okanovic <harisokn@amazon.com>
Tested-by: Misono Tomohiro <misono.tomohiro@fujitsu.com>
arch/Kconfig
arch/x86/Kconfig

index 8af374ea1adc245b3aa341314a1dcb51865d03d1..5874ce2a4cfc6d273c9f14269684195a7b29d5d1 100644 (file)
@@ -273,6 +273,9 @@ config HAVE_ARCH_TRACEHOOK
 config HAVE_DMA_CONTIGUOUS
        bool
 
+config ARCH_HAS_OPTIMIZED_POLL
+       bool
+
 config GENERIC_SMP_IDLE_THREAD
        bool
 
index 555871e7e3b247267e54b4a2fe539352e0678fee..272ec653a8cd3ab57e1ee646aba0d6fbb411126d 100644 (file)
@@ -138,6 +138,7 @@ config X86
        select ARCH_WANTS_NO_INSTR
        select ARCH_WANT_GENERAL_HUGETLB
        select ARCH_WANT_HUGE_PMD_SHARE
+       select ARCH_HAS_OPTIMIZED_POLL
        select ARCH_WANT_LD_ORPHAN_WARN
        select ARCH_WANT_OPTIMIZE_DAX_VMEMMAP   if X86_64
        select ARCH_WANT_OPTIMIZE_HUGETLB_VMEMMAP       if X86_64
@@ -378,9 +379,6 @@ config ARCH_MAY_HAVE_PC_FDC
 config GENERIC_CALIBRATE_DELAY
        def_bool y
 
-config ARCH_HAS_OPTIMIZED_POLL
-       def_bool y
-
 config ARCH_HIBERNATION_POSSIBLE
        def_bool y