Skip to content

Commit 5083452

Browse files
vireshkIngo Molnar
authored andcommitted
sched/cpufreq: Don't pass flags to sugov_set_iowait_boost()
We are already passing sg_cpu as argument to sugov_set_iowait_boost() helper and the same can be used to retrieve the flags value. Get rid of the redundant argument. Signed-off-by: Viresh Kumar <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Rafael Wysocki <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Vincent Guittot <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Link: http://lkml.kernel.org/r/4ec5562b1a87e146ebab11fb5dde1ca9c763a7fb.1513158452.git.viresh.kumar@linaro.org Signed-off-by: Ingo Molnar <[email protected]>
1 parent 6257e70 commit 5083452

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

kernel/sched/cpufreq_schedutil.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,9 @@ static void sugov_get_util(unsigned long *util, unsigned long *max, int cpu)
187187
*max = cfs_max;
188188
}
189189

190-
static void sugov_set_iowait_boost(struct sugov_cpu *sg_cpu, u64 time,
191-
unsigned int flags)
190+
static void sugov_set_iowait_boost(struct sugov_cpu *sg_cpu, u64 time)
192191
{
193-
if (flags & SCHED_CPUFREQ_IOWAIT) {
192+
if (sg_cpu->flags & SCHED_CPUFREQ_IOWAIT) {
194193
if (sg_cpu->iowait_boost_pending)
195194
return;
196195

@@ -264,7 +263,7 @@ static void sugov_update_single(struct update_util_data *hook, u64 time,
264263
unsigned int next_f;
265264
bool busy;
266265

267-
sugov_set_iowait_boost(sg_cpu, time, flags);
266+
sugov_set_iowait_boost(sg_cpu, time);
268267
sg_cpu->last_update = time;
269268

270269
if (!sugov_should_update_freq(sg_policy, time))
@@ -349,7 +348,7 @@ static void sugov_update_shared(struct update_util_data *hook, u64 time,
349348
sg_cpu->max = max;
350349
sg_cpu->flags = flags;
351350

352-
sugov_set_iowait_boost(sg_cpu, time, flags);
351+
sugov_set_iowait_boost(sg_cpu, time);
353352
sg_cpu->last_update = time;
354353

355354
if (sugov_should_update_freq(sg_policy, time)) {

0 commit comments

Comments
 (0)