Commit 251accf9 authored by Joel Fernandes's avatar Joel Fernandes Committed by Rafael J. Wysocki

cpufreq: schedutil: Use unsigned int for iowait boost

Make iowait_boost and iowait_boost_max as unsigned int since its unit
is kHz and this is consistent with struct cpufreq_policy.  Also change
the local variables in sugov_iowait_boost() to match this.
Signed-off-by: default avatarJoel Fernandes <joelaf@google.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent a5a0809b
...@@ -54,8 +54,8 @@ struct sugov_cpu { ...@@ -54,8 +54,8 @@ struct sugov_cpu {
struct sugov_policy *sg_policy; struct sugov_policy *sg_policy;
bool iowait_boost_pending; bool iowait_boost_pending;
unsigned long iowait_boost; unsigned int iowait_boost;
unsigned long iowait_boost_max; unsigned int iowait_boost_max;
u64 last_update; u64 last_update;
/* The fields below are only needed when sharing a policy. */ /* The fields below are only needed when sharing a policy. */
...@@ -196,7 +196,7 @@ static void sugov_set_iowait_boost(struct sugov_cpu *sg_cpu, u64 time, ...@@ -196,7 +196,7 @@ static void sugov_set_iowait_boost(struct sugov_cpu *sg_cpu, u64 time,
static void sugov_iowait_boost(struct sugov_cpu *sg_cpu, unsigned long *util, static void sugov_iowait_boost(struct sugov_cpu *sg_cpu, unsigned long *util,
unsigned long *max) unsigned long *max)
{ {
unsigned long boost_util, boost_max; unsigned int boost_util, boost_max;
if (!sg_cpu->iowait_boost) if (!sg_cpu->iowait_boost)
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment