lkml.org 
[lkml]   [2021]   [Apr]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/4] sched/fair: Consider SMT in ASYM_PACKING load balance
On Mon, Apr 05, 2021 at 09:11:07PM -0700, Ricardo Neri wrote:
> +static bool cpu_group_is_smt(int cpu, struct sched_group *sg)
> +{
> +#ifdef CONFIG_SCHED_SMT
> + if (!static_branch_likely(&sched_smt_present))
> + return false;
> +
> + if (sg->group_weight == 1)
> + return false;
> +
> + if (cpumask_weight(cpu_smt_mask(cpu)) == 1)
> + return false;

Please explain this condition. Why is it required?

> + return cpumask_equal(sched_group_span(sg), cpu_smt_mask(cpu));
> +#else
> + return false;
> +#endif
> +}

\
 
 \ /
  Last update: 2021-04-06 15:07    [W:0.281 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site