Skip to content

Commit 251accf

Browse files
Joel Fernandesrafaeljw
authored andcommitted
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 <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent a5a0809 commit 251accf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kernel/sched/cpufreq_schedutil.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ struct sugov_cpu {
5454
struct sugov_policy *sg_policy;
5555

5656
bool iowait_boost_pending;
57-
unsigned long iowait_boost;
58-
unsigned long iowait_boost_max;
57+
unsigned int iowait_boost;
58+
unsigned int iowait_boost_max;
5959
u64 last_update;
6060

6161
/* 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,
196196
static void sugov_iowait_boost(struct sugov_cpu *sg_cpu, unsigned long *util,
197197
unsigned long *max)
198198
{
199-
unsigned long boost_util, boost_max;
199+
unsigned int boost_util, boost_max;
200200

201201
if (!sg_cpu->iowait_boost)
202202
return;

0 commit comments

Comments
 (0)