Skip to content

Commit

Permalink
cpuidle: Fix ARCH_NEEDS_CPU_IDLE_COUPLED dependency warning
Browse files Browse the repository at this point in the history
Before commit d6f346f (cpuidle: improve governor Kconfig options),
the CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED option didn't depend on
CONFIG_CPU_IDLE but now it has been moved under the CPU_IDLE
menuconfig.

That raises the following warnings:

 warning: (ARCH_OMAP4 && ARCH_TEGRA_2x_SOC) selects ARCH_NEEDS_CPU_IDLE_COUPLED
 which has unmet direct dependencies (CPU_IDLE)
 warning: (ARCH_OMAP4 && ARCH_TEGRA_2x_SOC) selects ARCH_NEEDS_CPU_IDLE_COUPLED
 which has unmet direct dependencies (CPU_IDLE)

because the tegra2 and omap4 Kconfig files select this option
without checking if CPU_IDLE is set.

Fix that by moving ARCH_NEEDS_CPU_IDLE_COUPLED outside of CPU_IDLE.

[rjw: Changelog]
Signed-off-by: Daniel Lezcano <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
  • Loading branch information
dlezcano authored and rafaeljw committed Jun 11, 2013
1 parent 6d19cb9 commit b39b098
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/cpuidle/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -45,3 +42,6 @@ config CPU_IDLE_ZYNQ
Select this to enable cpuidle on Xilinx Zynq processors.

endif

config ARCH_NEEDS_CPU_IDLE_COUPLED
def_bool n

0 comments on commit b39b098

Please sign in to comment.