public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Tim Chen <tim.c.chen@linux.intel.com>
To: linux-kernel@vger.kernel.org, linux-tip-commits@vger.kernel.org
Cc: "Peter Zijlstra (Intel)" <peterz@infradead.org>,
	Chen Yu <yu.c.chen@intel.com>,
	Vincent Guittot <vincent.guittot@linaro.org>,
	 x86@kernel.org, Mohini Narkhede <mohini.narkhede@intel.com>
Subject: Re: [tip: sched/core] sched/balance: Skip unnecessary updates to idle load balancer's flags
Date: Wed, 05 Jun 2024 10:07:33 -0700	[thread overview]
Message-ID: <6c4a508382d7f485c87814152282679aff120f86.camel@linux.intel.com> (raw)
In-Reply-To: <171759927306.10875.2450909647126184930.tip-bot2@tip-bot2>

On Wed, 2024-06-05 at 14:54 +0000, tip-bot2 for Tim Chen wrote:
> 
> Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com>
> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
> Reviewed-by: Chen Yu <yu.c.chen@intel.com>
> Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org>
> Link: https://lore.kernel.org/r/20240531205452.65781-1-tim.c.chen@linux.intel.com

Peter,

Thanks for putting the patch in tip.

Can you also also add 

Tested-by: Mohini Narkhede <mohini.narkhede@intel.com>

Thanks.

Tim

> ---
>  kernel/sched/fair.c | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
> index 63113dc..41b5838 100644
> --- a/kernel/sched/fair.c
> +++ b/kernel/sched/fair.c
> @@ -11892,6 +11892,13 @@ static void kick_ilb(unsigned int flags)
>  		return;
>  
>  	/*
> +	 * Don't bother if no new NOHZ balance work items for ilb_cpu,
> +	 * i.e. all bits in flags are already set in ilb_cpu.
> +	 */
> +	if ((atomic_read(nohz_flags(ilb_cpu)) & flags) == flags)
> +		return;
> +
> +	/*
>  	 * Access to rq::nohz_csd is serialized by NOHZ_KICK_MASK; he who sets
>  	 * the first flag owns it; cleared by nohz_csd_func().
>  	 */


      reply	other threads:[~2024-06-05 17:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-31 20:54 [PATCH] sched/balance: Skip unnecessary updates to idle load balancer's flags Tim Chen
2024-06-02 16:40 ` Chen Yu
2024-06-03 16:13   ` Tim Chen
2024-06-04  2:10     ` Chen Yu
2024-06-04 22:32       ` Tim Chen
2024-06-04 14:37 ` Vincent Guittot
2024-06-05 14:54 ` [tip: sched/core] " tip-bot2 for Tim Chen
2024-06-05 17:07   ` Tim Chen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6c4a508382d7f485c87814152282679aff120f86.camel@linux.intel.com \
    --to=tim.c.chen@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=mohini.narkhede@intel.com \
    --cc=peterz@infradead.org \
    --cc=vincent.guittot@linaro.org \
    --cc=x86@kernel.org \
    --cc=yu.c.chen@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox