cpufreq: governor: split out common part of {cs|od}_dbs_timer()
authorViresh Kumar <viresh.kumar@linaro.org>
Sat, 18 Jul 2015 06:01:00 +0000 (11:31 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 20 Jul 2015 23:12:01 +0000 (01:12 +0200)
commit43e0ee361e96229959c2ce1eda1ad9d6b3c191b2
treebd04b0131c147d042daeb5501da4e3a1ce90dabe
parent44152cb82d1ad6ae6f8b47c5437f6f1e65ca82c4
cpufreq: governor: split out common part of {cs|od}_dbs_timer()

Some part of cs_dbs_timer() and od_dbs_timer() is exactly same and is
unnecessarily duplicated.

Create the real work-handler in cpufreq_governor.c and put the common
code in this routine (dbs_timer()).

Shouldn't make any functional change.

Reviewed-and-tested-by: Preeti U Murthy <preeti@linux.vnet.ibm.com>
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
drivers/cpufreq/cpufreq_ondemand.c