cpufreq: schedutil: Add util to struct sg_cpu
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 14 Dec 2020 20:04:11 +0000 (21:04 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 15 Dec 2020 18:24:18 +0000 (19:24 +0100)
commitca6827de4b67367e73fdf43d2ea0a0064423edfb
tree8c23054acc81aebb96ee8e21d0bb37658bd78f84
parenta28b2bfc099c6b9caa6ef697660408e076a32019
cpufreq: schedutil: Add util to struct sg_cpu

Instead of passing util and max between functions while computing the
utilization and capacity, store the former in struct sg_cpu (along
with the latter and bw_dl).

This will allow the current utilization value to be compared with the
one obtained previously (which is requisite for some code changes to
follow this one), but also it causes the code to look slightly more
consistent and cleaner.

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