[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <595dc187-bbe7-bd24-a322-db0d777697c0@arm.com>
Date: Wed, 23 Oct 2019 15:12:03 +0100
From: Valentin Schneider <valentin.schneider@....com>
To: Dietmar Eggemann <dietmar.eggemann@....com>,
linux-kernel@...r.kernel.org, cgroups@...r.kernel.org
Cc: lizefan@...wei.com, tj@...nel.org, hannes@...xchg.org,
mingo@...nel.org, peterz@...radead.org, vincent.guittot@...aro.org,
morten.rasmussen@....com, qperret@...gle.com,
stable@...r.kernel.org
Subject: Re: [PATCH v3 1/2] sched/topology: Don't try to build empty sched
domains
On 23/10/2019 12:46, Dietmar Eggemann wrote:
> Can you not just prevent that a cpuset pointer (cp) is added to the
> cpuset array (csa[]) in case cpumask_empty(cp->effective_cpus)?
>
> @@ -798,9 +800,14 @@ static int generate_sched_domains(cpumask_var_t
> **domains, cpumask_subset(cp->cpus_allowed, top_cpuset.effective_cpus))
> continue;
>
> - if (is_sched_load_balance(cp))
> + if (is_sched_load_balance(cp) && !cpumask_empty(cp->effective_cpus))
> csa[csn++] = cp;
>
I think you're right. Let me give it a shot and I'll spin a v4 with this +
better changelog for the key.
>> dp = doms[nslot];
>>
>> if (nslot == ndoms) {
>
> [...]
>
Powered by blists - more mailing lists