summaryrefslogtreecommitdiffstats
path: root/kernel/sched/cpufreq_schedutil.c
diff options
context:
space:
mode:
authorJoel Fernandes <joelaf@google.com>2017-07-23 08:54:26 -0700
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-07-26 22:52:13 +0200
commit251accf98591d7f59f7a2bac2e05c66d16bf2811 (patch)
treed022fad7257fc49a7cde091035e6fbdcc9eefd06 /kernel/sched/cpufreq_schedutil.c
parenta5a0809bc58e133d674e45175b052c9bdf002f1d (diff)
downloadlinux-251accf98591d7f59f7a2bac2e05c66d16bf2811.tar.gz
linux-251accf98591d7f59f7a2bac2e05c66d16bf2811.tar.bz2
linux-251accf98591d7f59f7a2bac2e05c66d16bf2811.zip
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: Joel Fernandes <joelaf@google.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel/sched/cpufreq_schedutil.c')
-rw-r--r--kernel/sched/cpufreq_schedutil.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/sched/cpufreq_schedutil.c b/kernel/sched/cpufreq_schedutil.c
index 148844a995a8..ddd385f2a985 100644
--- a/kernel/sched/cpufreq_schedutil.c
+++ b/kernel/sched/cpufreq_schedutil.c
@@ -54,8 +54,8 @@ struct sugov_cpu {
struct sugov_policy *sg_policy;
bool iowait_boost_pending;
- unsigned long iowait_boost;
- unsigned long iowait_boost_max;
+ unsigned int iowait_boost;
+ unsigned int iowait_boost_max;
u64 last_update;
/* 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,
static void sugov_iowait_boost(struct sugov_cpu *sg_cpu, unsigned long *util,
unsigned long *max)
{
- unsigned long boost_util, boost_max;
+ unsigned int boost_util, boost_max;
if (!sg_cpu->iowait_boost)
return;