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

Dietmar Eggemann dietmar.eggemann at arm.com
Fri Sep 11 07:11:38 PDT 2026


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?

[...]



More information about the linux-arm-kernel mailing list