cpuidle: move ARCH_NEEDS_CPU_IDLE_COUPLED Kconfig option
Subsystems (5)
PATCH 1/1 cpuidle: move ARCH_NEEDS_CPU_IDLE_COUPLED Kconfig option
There is no reason why ARCH_NEEDS_CPU_IDLE_COUPLED needs to be hidden inside of "if CPU_IDLE", since it is a silent option. Moving it outside lets platforms select this symbol unconditionally, which avoid a warning from the ARM omap2plus_defconfig build:
warning: (ARCH_OMAP4 && ARCH_TEGRA_2x_SOC) selects
ARCH_NEEDS_CPU_IDLE_COUPLED which has unmet direct dependencies (CPU_IDLE)
drivers/cpuidle/Kconfig +3 -3
@@ -29,9 +29,6 @@ config CPU_IDLE_GOV_MENU bool "Menu governor (for tickless system)" default y -config ARCH_NEEDS_CPU_IDLE_COUPLED - def_bool n - config CPU_IDLE_CALXEDA bool "CPU Idle Driver for Calxeda processors" depends on ARCH_HIGHBANK
@@ -39,3 +36,6 @@ config CPU_IDLE_CALXEDA help Select this to enable cpuidle on Calxeda processors. endif + +config ARCH_NEEDS_CPU_IDLE_COUPLED + def_bool n
PATCH 1/1 cpuidle: move ARCH_NEEDS_CPU_IDLE_COUPLED Kconfig option
Quoted 8 lines · Arnd Bergmann
There is no reason why
ARCH_NEEDS_CPU_IDLE_COUPLEDneeds to be hidden inside of "ifCPU_IDLE", since it is a silent option. Moving it outside lets platforms select this symbol unconditionally, which avoid a warning from the ARMomap2plus_defconfigbuild:warning: (
ARCH_OMAP4&&ARCH_TEGRA_2x_SOC) selects
ARCH_NEEDS_CPU_IDLE_COUPLEDwhich has unmet direct dependencies (CPU_IDLE)
IMHO, this option depends on CPU_IDLE and thus must be kept inside the CPU_IDLE menuconfig.
The warning raised here is because this option is selected by the arch Kconfig without checking if CPU_IDLE is set or not.
I am in favor to change the OMAP / TEGRA Kconfigs instead, in this way:
arch/arm/mach-omap2/Kconfig +1 -1
@@ -83,7 +83,7 @@ config ARCH_OMAP4 depends on ARCH_OMAP2PLUS depends on ARCH_MULTI_V7 select ARCH_HAS_OPP - select ARCH_NEEDS_CPU_IDLE_COUPLED if SMP + select ARCH_NEEDS_CPU_IDLE_COUPLED if (SMP && CPU_IDLE) select ARM_CPU_SUSPEND if PM select ARM_ERRATA_720789 select ARM_GIC
arch/arm/mach-tegra/Kconfig +1 -1
@@ -23,7 +23,7 @@ menu "NVIDIA Tegra options" config ARCH_TEGRA_2x_SOC bool "Enable support for Tegra20 family" - select ARCH_NEEDS_CPU_IDLE_COUPLED if SMP + select ARCH_NEEDS_CPU_IDLE_COUPLED if (SMP && CPU_IDLE) select ARM_ERRATA_720789 select ARM_ERRATA_754327 if SMP select ARM_ERRATA_764369 if SMP
drivers/cpuidle/Kconfig +0 -0
[ ... ]
Signature · 5 lines
<http://www.linaro.org/> Linaro.org ? Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog
PATCH 1/1 cpuidle: move ARCH_NEEDS_CPU_IDLE_COUPLED Kconfig option
Quoted 10 lines · Daniel Lezcano
Quoted 8 lines · Arnd Bergmann
There is no reason why
ARCH_NEEDS_CPU_IDLE_COUPLEDneeds to be hidden inside of "ifCPU_IDLE", since it is a silent option. Moving it outside lets platforms select this symbol unconditionally, which avoid a warning from the ARMomap2plus_defconfigbuild:warning: (
ARCH_OMAP4&&ARCH_TEGRA_2x_SOC) selects
ARCH_NEEDS_CPU_IDLE_COUPLEDwhich has unmet direct dependencies (CPU_IDLE)
Quoted 7 lines
IMHO, this option depends on
CPU_IDLEand thus must be kept inside theCPU_IDLEmenuconfig.The warning raised here is because this option is selected by the arch
Kconfigwithout checking ifCPU_IDLEis set or not.I am in favor to change the OMAP / TEGRA Kconfigs instead, in this way:
I prefer this one.
Thanks,
Rafael
Quoted 31 lines
arch/arm/mach-omap2/Kconfig +1
-1@@ -83,7 +83,7 @@ config ARCH_OMAP4 depends on ARCH_OMAP2PLUS depends on ARCH_MULTI_V7 select ARCH_HAS_OPP - select ARCH_NEEDS_CPU_IDLE_COUPLED if SMP + select ARCH_NEEDS_CPU_IDLE_COUPLED if (SMP && CPU_IDLE) select ARM_CPU_SUSPEND if PM select ARM_ERRATA_720789 select ARM_GICarch/arm/mach-tegra/Kconfig +1
-1@@ -23,7 +23,7 @@ menu "NVIDIA Tegra options" config ARCH_TEGRA_2x_SOC bool "Enable support for Tegra20 family" - select ARCH_NEEDS_CPU_IDLE_COUPLED if SMP + select ARCH_NEEDS_CPU_IDLE_COUPLED if (SMP && CPU_IDLE) select ARM_ERRATA_720789 select ARM_ERRATA_754327 if SMP select ARM_ERRATA_764369 if SMPdrivers/cpuidle/Kconfig +0
-0
Signature · 2 lines
I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center.
PATCH 1/1 cpuidle: move ARCH_NEEDS_CPU_IDLE_COUPLED Kconfig option
In reply to Daniel LezcanoQuoted 8 lines · On Wednesday 05 June 2013 14:50:44 Daniel Lezcano wrote:
IMHO, this option depends on
CPU_IDLEand thus must be kept inside theCPU_IDLEmenuconfig.The warning raised here is because this option is selected by the arch
Kconfigwithout checking ifCPU_IDLEis set or not.I am in favor to change the OMAP / TEGRA Kconfigs instead, in this way:
Fine with me as well.
Arnd