]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cpufreq: governors: remove redundant code
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 25 Oct 2012 22:47:42 +0000 (00:47 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 31 Oct 2012 20:05:53 +0000 (21:05 +0100)
commit83f0e55385a27f2ecd44b784b3c8eaa9129a7976
treee706c64d229cb25ee2828ecbb6baef720e76992b
parentc1bb65fd88d6fe197d87b31fc3a07f16174a6ab6
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>
drivers/cpufreq/cpufreq_conservative.c
drivers/cpufreq/cpufreq_governor.c
drivers/cpufreq/cpufreq_governor.h [new file with mode: 0644]
drivers/cpufreq/cpufreq_ondemand.c
include/linux/cpufreq.h