]> 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>
Thu, 25 Oct 2012 22:47:42 +0000 (00:47 +0200)
commitd7d6f64ef959b0dc360fc081d2e4daa9135bb7b0
tree66282b20e5daee7330e7ea409fb96bd04d03d292
parent5066841bd66cb713d8d786606b0a5ec879f00f34
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