]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cpufreq: schedutil: Pass sg_policy to get_next_freq()
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 2 Mar 2017 08:33:21 +0000 (14:03 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 5 Mar 2017 22:58:48 +0000 (23:58 +0100)
commit655cb1ebff4b7918fc560502c3297af2d3c7d114
tree995b6b885949ca75159c9ac55be9f06da74bb2af
parent6c4f0fa643cb9e775dcc976e3db00d649468ff1d
cpufreq: schedutil: Pass sg_policy to get_next_freq()

get_next_freq() uses sg_cpu only to get sg_policy, which the callers of
get_next_freq() already have. Pass sg_policy instead of sg_cpu to
get_next_freq(), to make it more efficient.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/sched/cpufreq_schedutil.c