diff options
author | Stratos Karafotis <stratosk@semaphore.gr> | 2013-06-05 12:01:50 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-07-25 19:06:44 -0400 |
commit | cffe4e0e7413eb29fb8bd035c8b12b33a4b8522a (patch) | |
tree | 71b3518f4bb7770845cce1488c0e7861e0321014 | |
parent | 61c63e5ed3b9c472899d7152e961f2ffaafcf5a0 (diff) |
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>
-rw-r--r-- | drivers/cpufreq/cpufreq.c | 12 | ||||
-rw-r--r-- | include/linux/cpufreq.h | 6 |
2 files changed, 0 insertions, 18 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: | |||
1593 | } | 1593 | } |
1594 | EXPORT_SYMBOL_GPL(cpufreq_driver_target); | 1594 | EXPORT_SYMBOL_GPL(cpufreq_driver_target); |
1595 | 1595 | ||
1596 | int __cpufreq_driver_getavg(struct cpufreq_policy *policy, unsigned int cpu) | ||
1597 | { | ||
1598 | if (cpufreq_disabled()) | ||
1599 | return 0; | ||
1600 | |||
1601 | if (!cpufreq_driver->getavg) | ||
1602 | return 0; | ||
1603 | |||
1604 | return cpufreq_driver->getavg(policy, cpu); | ||
1605 | } | ||
1606 | EXPORT_SYMBOL_GPL(__cpufreq_driver_getavg); | ||
1607 | |||
1608 | /* | 1596 | /* |
1609 | * when "event" is CPUFREQ_GOV_LIMITS | 1597 | * when "event" is CPUFREQ_GOV_LIMITS |
1610 | */ | 1598 | */ |
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 90d5a15120d5..e1fd215e16c9 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h | |||
@@ -216,10 +216,6 @@ extern int cpufreq_driver_target(struct cpufreq_policy *policy, | |||
216 | extern int __cpufreq_driver_target(struct cpufreq_policy *policy, | 216 | extern int __cpufreq_driver_target(struct cpufreq_policy *policy, |
217 | unsigned int target_freq, | 217 | unsigned int target_freq, |
218 | unsigned int relation); | 218 | unsigned int relation); |
219 | |||
220 | extern int __cpufreq_driver_getavg(struct cpufreq_policy *policy, | ||
221 | unsigned int cpu); | ||
222 | |||
223 | int cpufreq_register_governor(struct cpufreq_governor *governor); | 219 | int cpufreq_register_governor(struct cpufreq_governor *governor); |
224 | void cpufreq_unregister_governor(struct cpufreq_governor *governor); | 220 | void cpufreq_unregister_governor(struct cpufreq_governor *governor); |
225 | 221 | ||
@@ -258,8 +254,6 @@ struct cpufreq_driver { | |||
258 | unsigned int (*get) (unsigned int cpu); | 254 | unsigned int (*get) (unsigned int cpu); |
259 | 255 | ||
260 | /* optional */ | 256 | /* optional */ |
261 | unsigned int (*getavg) (struct cpufreq_policy *policy, | ||
262 | unsigned int cpu); | ||
263 | int (*bios_limit) (int cpu, unsigned int *limit); | 257 | int (*bios_limit) (int cpu, unsigned int *limit); |
264 | 258 | ||
265 | int (*exit) (struct cpufreq_policy *policy); | 259 | int (*exit) (struct cpufreq_policy *policy); |