Commit d985ee9f authored by Hao Jia's avatar Hao Jia Committed by Ingo Molnar

sched/fair: Remove unused parameter idle of _nohz_idle_balance()

After commit 7a82e5f5 ("sched/fair: Merge for each idle cpu loop of ILB"),
_nohz_idle_balance()'s 'idle' parameter is not used anymore, so we can remove it.
Signed-off-by: default avatarHao Jia <jiahao.os@bytedance.com>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
Reviewed-by: default avatarVincent Guittot <vincent.guittot@linaro.org>
Link: https://lore.kernel.org/r/20220803130223.70419-1-jiahao.os@bytedance.com
parent 0f03d680
...@@ -10916,8 +10916,7 @@ static bool update_nohz_stats(struct rq *rq) ...@@ -10916,8 +10916,7 @@ static bool update_nohz_stats(struct rq *rq)
* can be a simple update of blocked load or a complete load balance with * can be a simple update of blocked load or a complete load balance with
* tasks movement depending of flags. * tasks movement depending of flags.
*/ */
static void _nohz_idle_balance(struct rq *this_rq, unsigned int flags, static void _nohz_idle_balance(struct rq *this_rq, unsigned int flags)
enum cpu_idle_type idle)
{ {
/* Earliest time when we have to do rebalance again */ /* Earliest time when we have to do rebalance again */
unsigned long now = jiffies; unsigned long now = jiffies;
...@@ -11032,7 +11031,7 @@ static bool nohz_idle_balance(struct rq *this_rq, enum cpu_idle_type idle) ...@@ -11032,7 +11031,7 @@ static bool nohz_idle_balance(struct rq *this_rq, enum cpu_idle_type idle)
if (idle != CPU_IDLE) if (idle != CPU_IDLE)
return false; return false;
_nohz_idle_balance(this_rq, flags, idle); _nohz_idle_balance(this_rq, flags);
return true; return true;
} }
...@@ -11052,7 +11051,7 @@ void nohz_run_idle_balance(int cpu) ...@@ -11052,7 +11051,7 @@ void nohz_run_idle_balance(int cpu)
* (ie NOHZ_STATS_KICK set) and will do the same. * (ie NOHZ_STATS_KICK set) and will do the same.
*/ */
if ((flags == NOHZ_NEWILB_KICK) && !need_resched()) if ((flags == NOHZ_NEWILB_KICK) && !need_resched())
_nohz_idle_balance(cpu_rq(cpu), NOHZ_STATS_KICK, CPU_IDLE); _nohz_idle_balance(cpu_rq(cpu), NOHZ_STATS_KICK);
} }
static void nohz_newidle_balance(struct rq *this_rq) static void nohz_newidle_balance(struct rq *this_rq)
......
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