From: Tim Chen <tim.c.chen@linux.intel.com>
To: Chen Yu <yu.c.chen@intel.com>,
Peter Zijlstra <peterz@infradead.org>,
Juri Lelli <juri.lelli@redhat.com>,
Vincent Guittot <vincent.guittot@linaro.org>,
Ingo Molnar <mingo@redhat.com>
Cc: Ricardo Neri <ricardo.neri@intel.com>,
Tim Chen <tim.c.chen@intel.com>,
Yicong Yang <yangyicong@huawei.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] sched/topology: Align group flags when removing degenerate domain
Date: Wed, 12 Jul 2023 11:36:26 -0700 [thread overview]
Message-ID: <3fa9b9675e381dc483c4656d86253955dcb96f2e.camel@linux.intel.com> (raw)
In-Reply-To: <20230713013133.2314153-1-yu.c.chen@intel.com>
On Thu, 2023-07-13 at 09:31 +0800, Chen Yu wrote:
> The flags of the child of a given scheduling domain are used to initialize
> the flags of its scheduling groups. When the child of a scheduling domain
> is degenerated, the flags of its local scheduling group need to be updated
> to align with the flags of its new child domain.
>
> The flag SD_SHARE_CPUCAPACITY was aligned in
> Commit bf2dc42d6beb ("sched/topology: Propagate SMT flags when removing degenerate domain").
> Further generalize this alignment so other flags can be used later, such as
> in cluster-based task wakeup. [1]
>
> Link: https://lore.kernel.org/lkml/20230530115527.GC156198@hirez.programming.kicks-ass.net #1
> Suggested-by: Ricardo Neri <ricardo.neri@intel.com>
> Reported-by: Yicong Yang <yangyicong@huawei.com>
> Closes: https://lore.kernel.org/lkml/ce714341-af58-2522-69a8-321f02c82893@huawei.com/
> Signed-off-by: Chen Yu <yu.c.chen@intel.com>
> ---
> kernel/sched/topology.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c
> index d3a3b2646ec4..ff02d7deec0c 100644
> --- a/kernel/sched/topology.c
> +++ b/kernel/sched/topology.c
> @@ -722,8 +722,7 @@ cpu_attach_domain(struct sched_domain *sd, struct root_domain *rd, int cpu)
>
> if (parent->parent) {
> parent->parent->child = tmp;
> - if (tmp->flags & SD_SHARE_CPUCAPACITY)
> - parent->parent->groups->flags |= SD_SHARE_CPUCAPACITY;
> + parent->parent->groups->flags = tmp->flags;
> }
>
> /*
Reviewed-by: Tim Chen <tim.c.chen@linux.intel.com>
next prev parent reply other threads:[~2023-07-12 18:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-13 1:31 Chen Yu
2023-07-12 18:36 ` Tim Chen [this message]
2023-07-13 6:35 ` Yicong Yang
2023-07-31 10:19 ` [tip: sched/core] " tip-bot2 for Chen Yu
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=3fa9b9675e381dc483c4656d86253955dcb96f2e.camel@linux.intel.com \
--to=tim.c.chen@linux.intel.com \
--cc=juri.lelli@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=ricardo.neri@intel.com \
--cc=tim.c.chen@intel.com \
--cc=vincent.guittot@linaro.org \
--cc=yangyicong@huawei.com \
--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
all inboxes | Powered by JetHome®