cpufreq: arm-big-little: Make driver dependent on CONFIG_BIG_LITTLE
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 3 Jan 2014 10:21:39 +0000 (15:51 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 6 Jan 2014 00:17:48 +0000 (01:17 +0100)
The arm_big_little cpufreq driver is only used by ARM bigLITTLE
platforms and hence must depend on CONFIG_BIG_LITTLE.

This was highlighted by Russell earlier when he reported this issue:

drivers/built-in.o: In function `bL_cpufreq_set_rate':
powercap_sys.c:(.text+0x5ed9a0): undefined reference to `bL_switch_request_cb'

Reported-by: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/Kconfig.arm

index 456ba5e1781c549f4a6cfbe736edb375031b1cbd..3275e9cab1cc6126dabc2d856f1f7d5181cc6acd 100644 (file)
@@ -4,7 +4,7 @@
 
 config ARM_BIG_LITTLE_CPUFREQ
        tristate "Generic ARM big LITTLE CPUfreq driver"
-       depends on ARM && ARM_CPU_TOPOLOGY && HAVE_CLK
+       depends on ARM && BIG_LITTLE && ARM_CPU_TOPOLOGY && HAVE_CLK
        select PM_OPP
        help
          This enables the Generic CPUfreq driver for ARM big.LITTLE platforms.