summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/cpufreq.c
diff options
context:
space:
mode:
authorStratos Karafotis2013-06-05 18:01:50 +0200
committerRafael J. Wysocki2013-07-26 01:06:44 +0200
commitcffe4e0e7413eb29fb8bd035c8b12b33a4b8522a (patch)
tree71b3518f4bb7770845cce1488c0e7861e0321014 /drivers/cpufreq/cpufreq.c
parentcpufreq: Remove unused APERF/MPERF support (diff)
downloadkernel-qcow2-linux-cffe4e0e7413eb29fb8bd035c8b12b33a4b8522a.tar.gz
kernel-qcow2-linux-cffe4e0e7413eb29fb8bd035c8b12b33a4b8522a.tar.xz
kernel-qcow2-linux-cffe4e0e7413eb29fb8bd035c8b12b33a4b8522a.zip
cpufreq: Remove unused function __cpufreq_driver_getavg()
The target frequency calculation method in the ondemand governor has changed and it is now independent of the measured average frequency. Consequently, the __cpufreq_driver_getavg() function and getavg member of struct cpufreq_driver are not used any more, so drop them. [rjw: Changelog] Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq.c')
-rw-r--r--drivers/cpufreq/cpufreq.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
index a4ad7339588d..9a9d8ee9faec 100644
--- a/drivers/cpufreq/cpufreq.c
+++ b/drivers/cpufreq/cpufreq.c
@@ -1593,18 +1593,6 @@ fail:
}
EXPORT_SYMBOL_GPL(cpufreq_driver_target);
-int __cpufreq_driver_getavg(struct cpufreq_policy *policy, unsigned int cpu)
-{
- if (cpufreq_disabled())
- return 0;
-
- if (!cpufreq_driver->getavg)
- return 0;
-
- return cpufreq_driver->getavg(policy, cpu);
-}
-EXPORT_SYMBOL_GPL(__cpufreq_driver_getavg);
-
/*
* when "event" is CPUFREQ_GOV_LIMITS
*/