summaryrefslogtreecommitdiff
path: root/drivers/cpufreq
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2020-12-14 23:04:11 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2020-12-15 21:24:18 +0300
commitca6827de4b67367e73fdf43d2ea0a0064423edfb (patch)
tree8c23054acc81aebb96ee8e21d0bb37658bd78f84 /drivers/cpufreq
parenta28b2bfc099c6b9caa6ef697660408e076a32019 (diff)
downloadlinux-ca6827de4b67367e73fdf43d2ea0a0064423edfb.tar.xz
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>
Diffstat (limited to 'drivers/cpufreq')
0 files changed, 0 insertions, 0 deletions