diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2012-10-25 18:47:42 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2012-11-14 18:33:07 -0500 |
commit | 4471a34f9a1f2da220272e823bdb8e8fa83a7661 (patch) | |
tree | d63e8c16a4b40da97b558d4b955f8e64157b8900 /include/linux/cpufreq.h | |
parent | 0676f7f2e7d2adec11f40320ca43a8897b8ef906 (diff) |
cpufreq: governors: remove redundant code
Initially ondemand governor was written and then using its code conservative
governor is written. It used a lot of code from ondemand governor, but copy of
code was created instead of using the same routines from both governors. Which
increased code redundancy, which is difficult to manage.
This patch is an attempt to move common part of both the governors to
cpufreq_governor.c file to come over above mentioned issues.
This shouldn't change anything from functionality point of view.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/cpufreq.h')
-rw-r--r-- | include/linux/cpufreq.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index d03c21993052..a55b88eaf96a 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h | |||
@@ -407,10 +407,4 @@ void cpufreq_frequency_table_get_attr(struct cpufreq_frequency_table *table, | |||
407 | unsigned int cpu); | 407 | unsigned int cpu); |
408 | 408 | ||
409 | void cpufreq_frequency_table_put_attr(unsigned int cpu); | 409 | void cpufreq_frequency_table_put_attr(unsigned int cpu); |
410 | |||
411 | /********************************************************************* | ||
412 | * Governor Helpers * | ||
413 | *********************************************************************/ | ||
414 | cputime64_t get_cpu_idle_time(unsigned int cpu, cputime64_t *wall); | ||
415 | |||
416 | #endif /* _LINUX_CPUFREQ_H */ | 410 | #endif /* _LINUX_CPUFREQ_H */ |