diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-05-14 02:01:46 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-05-30 15:34:17 +0300 |
commit | a92604b419f47e1c5098632742d8e031f6e8fab1 (patch) | |
tree | ac817b44523f5d789c11a0e4f6e3be7ce46ea9d0 /drivers/cpufreq/cpufreq_conservative.c | |
parent | 16de72b9f4d07e393bea7b1221898b3be718a296 (diff) | |
download | linux-a92604b419f47e1c5098632742d8e031f6e8fab1.tar.xz |
cpufreq: Split cpufreq_governor() into simpler functions
The cpufreq_governor() routine is used by the cpufreq core to invoke
the current governor's ->governor() callback with appropriate arguments
and do some housekeeping related to that. Unfortunately, the way it
mixes different governor events in one code path makes it rather hard
to follow the code.
For this reason, split cpufreq_governor() into five simpler functions
that each will handle just one specific governor event and put all of
the code related to the given event into its own function.
This change is a prerequisite for a redesign of the cpufreq governor
API that will be done subsequently.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'drivers/cpufreq/cpufreq_conservative.c')
0 files changed, 0 insertions, 0 deletions