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