Re: [PATCH 2/2] sched/fair: Honor asymmetric SMT priority in idle selection

From: Dietmar Eggemann

Date: Fri Sep 11 2026 - 10:27:10 EST


On 09.09.26 08:26, Andrea Righi wrote:

[...]

> +static bool has_asym_smt_domain(int cpu)
> +{
> + struct sched_domain *sd;
> +
> + for_each_domain(cpu, sd) {
> + if (!(sd->flags & SD_SHARE_CPUCAPACITY))
> + break;
> +
> + if (sd->flags & SD_ASYM_PACKING)
> + return true;
> + }
> +
> + return false;
> +}

Replace for_each_domain() w/ sd = rcu_dereference_all(cpu_rq(cpu)->sd)
here as well?

[...]