virt inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/IB7PU3 CVE: NA
----------------------------------------------------
Add config for cpuidle-haltpoll. This feature is disabled by default. Enable it using the following command: echo Y > /sys/module/cpuidle_haltpoll/parameters/force
Signed-off-by: lishusen lishusen2@huawei.com --- arch/arm64/Kconfig | 2 ++ arch/arm64/configs/openeuler_defconfig | 3 +++ 2 files changed, 5 insertions(+)
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index d3a2e59eade6..bb2d63aa2dd7 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -37,6 +37,8 @@ config ARM64 select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE select ARCH_HAS_NONLEAF_PMD_YOUNG if ARM64_HAFT select ARCH_HAS_OPTIMIZED_POLL + select ARCH_CPUIDLE_HALTPOLL + select HALTPOLL_CPUIDLE select ARCH_HAS_PTE_DEVMAP select ARCH_HAS_PTE_SPECIAL select ARCH_HAS_SETUP_DMA_OPS diff --git a/arch/arm64/configs/openeuler_defconfig b/arch/arm64/configs/openeuler_defconfig index 41fba69b84e2..95ddc85f6ddf 100644 --- a/arch/arm64/configs/openeuler_defconfig +++ b/arch/arm64/configs/openeuler_defconfig @@ -628,6 +628,7 @@ CONFIG_CPU_PM=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_HIBERNATION_HEADER=y CONFIG_ARCH_SUSPEND_POSSIBLE=y +CONFIG_ARCH_CPUIDLE_HALTPOLL=y # end of Power management options
# @@ -647,6 +648,7 @@ CONFIG_CPU_IDLE_GOV_TEO=y # # CONFIG_ARM_PSCI_CPUIDLE is not set # end of ARM CPU Idle Drivers +CONFIG_HALTPOLL_CPUIDLE=y # end of CPU Idle
# @@ -789,6 +791,7 @@ CONFIG_TRACE_IRQFLAGS_SUPPORT=y CONFIG_TRACE_IRQFLAGS_NMI_SUPPORT=y CONFIG_HAVE_ARCH_TRACEHOOK=y CONFIG_HAVE_DMA_CONTIGUOUS=y +CONFIG_ARCH_HAS_OPTIMIZED_POLL=y CONFIG_GENERIC_SMP_IDLE_THREAD=y CONFIG_GENERIC_IDLE_POLL_SETUP=y CONFIG_ARCH_HAS_FORTIFY_SOURCE=y