cpufreq: governor: Move per-CPU data to the common code
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 20 Feb 2016 23:51:27 +0000 (00:51 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 9 Mar 2016 13:41:09 +0000 (14:41 +0100)
commit8c8f77fd0719a079450f59debed4f69ede825adb
tree6e1370e23065e3243f2677742ca479771e39e843
parent7d5a9956af4ccf7d5cc0cd1f8d27d1691321bfc6
cpufreq: governor: Move per-CPU data to the common code

After previous changes there is only one piece of code in the
ondemand governor making references to per-CPU data structures,
but it can be easily modified to avoid doing that, so modify it
accordingly and move the definition of per-CPU data used by the
ondemand and conservative governors to the common code.  Next,
change that code to access the per-CPU data structures directly
rather than via a governor callback.

This causes the ->get_cpu_cdbs governor callback to become
unnecessary, so drop it along with the macro and function
definitions related to it.

Finally, drop the definitions of struct od_cpu_dbs_info_s and
struct cs_cpu_dbs_info_s that aren't necessary any more.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/cpufreq_conservative.c
drivers/cpufreq/cpufreq_governor.c
drivers/cpufreq/cpufreq_governor.h
drivers/cpufreq/cpufreq_ondemand.c
This page took 0.025004 seconds and 5 git commands to generate.