]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: Move common part from governors to separate file, v2
authorviresh kumar <viresh.kumar@linaro.org>
Mon, 22 Oct 2012 23:28:05 +0000 (01:28 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 14 Nov 2012 23:33:06 +0000 (00:33 +0100)
commite2a85982e1225442ae8efc4a0b5e04adc0902ec0
treea9ce276509ea2bf7b880920af0431a3d8fe86245
parentdbf6caeed7f55fd3e4d840831500fbddaa2b1487
cpufreq: Move common part from governors to separate file, v2

Multiple cpufreq governers have defined similar get_cpu_idle_time_***()
routines. These routines must be moved to some common place, so that all
governors can use them.

So moving them to cpufreq_governor.c, which seems to be a better place for
keeping these routines.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/Makefile
drivers/cpufreq/cpufreq_conservative.c
drivers/cpufreq/cpufreq_governor.c [new file with mode: 0644]
drivers/cpufreq/cpufreq_ondemand.c
include/linux/cpufreq.h