]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
cpufreq: Select PM_OPP rather than depending on it
authorMark Brown <broonie@linaro.org>
Wed, 11 Dec 2013 22:12:27 +0000 (22:12 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 22 Dec 2013 21:03:49 +0000 (22:03 +0100)
PM_OPP is a helper library used by several of the existing cpufreq drivers.
Some of the drivers select this symbol while others depend on it and rely
on the architecture to enable it. Make this behaviour more consistent and
obvious by having all the drivers select the symbol. This will also allow
better build coverage of the affected drivers.

Signed-off-by: Mark Brown <broonie@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/Kconfig
drivers/cpufreq/Kconfig.arm

index 38093e272377b2729939400c581aeb9706424011..386dbc9ccdfdc36a1dca49ca917cbd6423922081 100644 (file)
@@ -181,7 +181,8 @@ config CPU_FREQ_GOV_CONSERVATIVE
 
 config GENERIC_CPUFREQ_CPU0
        tristate "Generic CPU0 cpufreq driver"
-       depends on HAVE_CLK && REGULATOR && PM_OPP && OF
+       depends on HAVE_CLK && REGULATOR && OF
+       select PM_OPP
        help
          This adds a generic cpufreq driver for CPU0 frequency management.
          It supports both uniprocessor (UP) and symmetric multiprocessor (SMP)
index 0a141109fd298ae904bd35a86469a96d2a638209..456ba5e1781c549f4a6cfbe736edb375031b1cbd 100644 (file)
@@ -4,7 +4,8 @@
 
 config ARM_BIG_LITTLE_CPUFREQ
        tristate "Generic ARM big LITTLE CPUfreq driver"
-       depends on ARM && ARM_CPU_TOPOLOGY && PM_OPP && HAVE_CLK
+       depends on ARM && ARM_CPU_TOPOLOGY && HAVE_CLK
+       select PM_OPP
        help
          This enables the Generic CPUfreq driver for ARM big.LITTLE platforms.
 
@@ -54,7 +55,8 @@ config ARM_EXYNOS5250_CPUFREQ
 config ARM_EXYNOS5440_CPUFREQ
        bool "SAMSUNG EXYNOS5440"
        depends on SOC_EXYNOS5440
-       depends on HAVE_CLK && PM_OPP && OF
+       depends on HAVE_CLK && OF
+       select PM_OPP
        default y
        help
          This adds the CPUFreq driver for Samsung EXYNOS5440