Re: [PATCH 12/33] sched/isolation: Convert housekeeping cpumasks to rcu pointers

Frederic Weisbecker
2025-11-05T15:23:08Z

Le Mon, Oct 20, 2025 at 11:49:53PM -0400, Waiman Long a écrit :
> > bool housekeeping_test_cpu(int cpu, enum hk_type type)
> > {
> > - if (static_branch_unlikely(&housekeeping_overridden))
> > - if (housekeeping.flags & BIT(type))
> > - return cpumask_test_cpu(cpu, housekeeping.cpumasks[type]);
> > + if (housekeeping.flags & BIT(type))
> > + return cpumask_test_cpu(cpu, housekeeping_cpumask(type));
> > return true;
> > }
>
> The housekeeping_overridden static key check is kept in other places except
> this one. Should we keep it for consistency?

Indeed!

Thanks.

--
Frederic Weisbecker
SUSE Labs