• Rafael J. Wysocki's avatar
    cpufreq: Split cpufreq_governor() into simpler functions · a92604b4
    Rafael J. Wysocki authored
    
    
    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: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
    Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
    a92604b4