Commit 64f84f27 authored by Vincent Guittot's avatar Vincent Guittot Committed by Ingo Molnar

sched/fair: Remove unused parameter of update_nohz_stats

idle load balance is the only user of update_nohz_stats and doesn't use
force parameter. Remove it
Signed-off-by: default avatarVincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
Reviewed-by: default avatarValentin Schneider <valentin.schneider@arm.com>
Link: https://lkml.kernel.org/r/20210224133007.28644-4-vincent.guittot@linaro.org
parent ab2dde5e
...@@ -8352,7 +8352,7 @@ group_type group_classify(unsigned int imbalance_pct, ...@@ -8352,7 +8352,7 @@ group_type group_classify(unsigned int imbalance_pct,
return group_has_spare; return group_has_spare;
} }
static bool update_nohz_stats(struct rq *rq, bool force) static bool update_nohz_stats(struct rq *rq)
{ {
#ifdef CONFIG_NO_HZ_COMMON #ifdef CONFIG_NO_HZ_COMMON
unsigned int cpu = rq->cpu; unsigned int cpu = rq->cpu;
...@@ -8363,7 +8363,7 @@ static bool update_nohz_stats(struct rq *rq, bool force) ...@@ -8363,7 +8363,7 @@ static bool update_nohz_stats(struct rq *rq, bool force)
if (!cpumask_test_cpu(cpu, nohz.idle_cpus_mask)) if (!cpumask_test_cpu(cpu, nohz.idle_cpus_mask))
return false; return false;
if (!force && !time_after(jiffies, rq->last_blocked_load_update_tick)) if (!time_after(jiffies, rq->last_blocked_load_update_tick))
return true; return true;
update_blocked_averages(cpu); update_blocked_averages(cpu);
...@@ -10401,7 +10401,7 @@ static void _nohz_idle_balance(struct rq *this_rq, unsigned int flags, ...@@ -10401,7 +10401,7 @@ static void _nohz_idle_balance(struct rq *this_rq, unsigned int flags,
rq = cpu_rq(balance_cpu); rq = cpu_rq(balance_cpu);
has_blocked_load |= update_nohz_stats(rq, true); has_blocked_load |= update_nohz_stats(rq);
/* /*
* If time for next balance is due, * If time for next balance is due,
......
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