All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RESEND v2] sched/fair: Remove unused parameter idle of _nohz_idle_balance()
@ 2022-08-03 13:02 Hao Jia
  2022-08-03 17:03 ` [tip: sched/core] " tip-bot2 for Hao Jia
  2022-08-04 11:41 ` [PATCH RESEND v2] " Mel Gorman
  0 siblings, 2 replies; 4+ messages in thread
From: Hao Jia @ 2022-08-03 13:02 UTC (permalink / raw)
  To: mingo, peterz, mingo, juri.lelli, vincent.guittot,
	dietmar.eggemann, rostedt, bsegall, mgorman, bristot, vschneid
  Cc: linux-kernel, Hao Jia

Commit 7a82e5f52a35 ("sched/fair: Merge for each idle cpu loop of ILB")
has been merged. The parameter idle of _nohz_idle_balance()
is not used anymore so we can remove it.

Signed-off-by: Hao Jia <jiahao.os@bytedance.com>
Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org>

---
 v2:
 - Modify the commit format, suggested by Vincent Guittot.
---
---
 kernel/sched/fair.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 914096c5b1ae..42f5b078d839 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -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
  * tasks movement depending of flags.
  */
-static void _nohz_idle_balance(struct rq *this_rq, unsigned int flags,
-			       enum cpu_idle_type idle)
+static void _nohz_idle_balance(struct rq *this_rq, unsigned int flags)
 {
 	/* Earliest time when we have to do rebalance again */
 	unsigned long now = jiffies;
@@ -11032,7 +11031,7 @@ static bool nohz_idle_balance(struct rq *this_rq, enum cpu_idle_type idle)
 	if (idle != CPU_IDLE)
 		return false;
 
-	_nohz_idle_balance(this_rq, flags, idle);
+	_nohz_idle_balance(this_rq, flags);
 
 	return true;
 }
@@ -11052,7 +11051,7 @@ void nohz_run_idle_balance(int cpu)
 	 * (ie NOHZ_STATS_KICK set) and will do the same.
 	 */
 	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)
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [tip: sched/core] sched/fair: Remove unused parameter idle of _nohz_idle_balance()
  2022-08-03 13:02 [PATCH RESEND v2] sched/fair: Remove unused parameter idle of _nohz_idle_balance() Hao Jia
@ 2022-08-03 17:03 ` tip-bot2 for Hao Jia
  2022-08-04 11:41 ` [PATCH RESEND v2] " Mel Gorman
  1 sibling, 0 replies; 4+ messages in thread
From: tip-bot2 for Hao Jia @ 2022-08-03 17:03 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: Hao Jia, Ingo Molnar, Vincent Guittot, x86, linux-kernel

The following commit has been merged into the sched/core branch of tip:

Commit-ID:     d985ee9f449aafe45397ae1cf8887e9ac91d2f95
Gitweb:        https://git.kernel.org/tip/d985ee9f449aafe45397ae1cf8887e9ac91d2f95
Author:        Hao Jia <jiahao.os@bytedance.com>
AuthorDate:    Wed, 03 Aug 2022 21:02:23 +08:00
Committer:     Ingo Molnar <mingo@kernel.org>
CommitterDate: Wed, 03 Aug 2022 18:54:26 +02:00

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

After commit 7a82e5f52a35 ("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: Hao Jia <jiahao.os@bytedance.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org>
Link: https://lore.kernel.org/r/20220803130223.70419-1-jiahao.os@bytedance.com
---
 kernel/sched/fair.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 41486d9..d22c5e8 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -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
  * tasks movement depending of flags.
  */
-static void _nohz_idle_balance(struct rq *this_rq, unsigned int flags,
-			       enum cpu_idle_type idle)
+static void _nohz_idle_balance(struct rq *this_rq, unsigned int flags)
 {
 	/* Earliest time when we have to do rebalance again */
 	unsigned long now = jiffies;
@@ -11032,7 +11031,7 @@ static bool nohz_idle_balance(struct rq *this_rq, enum cpu_idle_type idle)
 	if (idle != CPU_IDLE)
 		return false;
 
-	_nohz_idle_balance(this_rq, flags, idle);
+	_nohz_idle_balance(this_rq, flags);
 
 	return true;
 }
@@ -11052,7 +11051,7 @@ void nohz_run_idle_balance(int cpu)
 	 * (ie NOHZ_STATS_KICK set) and will do the same.
 	 */
 	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)

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH RESEND v2] sched/fair: Remove unused parameter idle of _nohz_idle_balance()
  2022-08-03 13:02 [PATCH RESEND v2] sched/fair: Remove unused parameter idle of _nohz_idle_balance() Hao Jia
  2022-08-03 17:03 ` [tip: sched/core] " tip-bot2 for Hao Jia
@ 2022-08-04 11:41 ` Mel Gorman
  2022-08-04 19:05   ` Ingo Molnar
  1 sibling, 1 reply; 4+ messages in thread
From: Mel Gorman @ 2022-08-04 11:41 UTC (permalink / raw)
  To: Hao Jia
  Cc: mingo, peterz, mingo, juri.lelli, vincent.guittot,
	dietmar.eggemann, rostedt, bsegall, bristot, vschneid,
	linux-kernel

On Wed, Aug 03, 2022 at 09:02:23PM +0800, Hao Jia wrote:
> Commit 7a82e5f52a35 ("sched/fair: Merge for each idle cpu loop of ILB")
> has been merged. The parameter idle of _nohz_idle_balance()
> is not used anymore so we can remove it.
> 
> Signed-off-by: Hao Jia <jiahao.os@bytedance.com>
> Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org>

Acked-by: Mel Gorman <mgorman@suse.de>

Just note that with the merge window open, this may not be picked up
quickly and you may need to send a v3 when the merge window closes.

-- 
Mel Gorman
SUSE Labs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH RESEND v2] sched/fair: Remove unused parameter idle of _nohz_idle_balance()
  2022-08-04 11:41 ` [PATCH RESEND v2] " Mel Gorman
@ 2022-08-04 19:05   ` Ingo Molnar
  0 siblings, 0 replies; 4+ messages in thread
From: Ingo Molnar @ 2022-08-04 19:05 UTC (permalink / raw)
  To: Mel Gorman
  Cc: Hao Jia, mingo, peterz, juri.lelli, vincent.guittot,
	dietmar.eggemann, rostedt, bsegall, bristot, vschneid,
	linux-kernel


* Mel Gorman <mgorman@suse.de> wrote:

> On Wed, Aug 03, 2022 at 09:02:23PM +0800, Hao Jia wrote:
> > Commit 7a82e5f52a35 ("sched/fair: Merge for each idle cpu loop of ILB")
> > has been merged. The parameter idle of _nohz_idle_balance()
> > is not used anymore so we can remove it.
> > 
> > Signed-off-by: Hao Jia <jiahao.os@bytedance.com>
> > Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org>
> 
> Acked-by: Mel Gorman <mgorman@suse.de>
> 
> Just note that with the merge window open, this may not be picked up
> quickly and you may need to send a v3 when the merge window closes.

It's already in tip:sched/core. :-)

Thanks,

	Ingo

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-08-04 19:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-03 13:02 [PATCH RESEND v2] sched/fair: Remove unused parameter idle of _nohz_idle_balance() Hao Jia
2022-08-03 17:03 ` [tip: sched/core] " tip-bot2 for Hao Jia
2022-08-04 11:41 ` [PATCH RESEND v2] " Mel Gorman
2022-08-04 19:05   ` Ingo Molnar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.