Re: [PATCH 13/31] cpuset: Update HK_TYPE_DOMAIN cpumask from cpuset

From: Frederic Weisbecker

Date: Tue Dec 23 2025 - 10:16:32 EST


Le Sat, Nov 08, 2025 at 05:05:10PM +0800, Chen Ridong a écrit :
> > +int housekeeping_update(struct cpumask *mask, enum hk_type type)
> > +{
> > + struct cpumask *trial, *old = NULL;
> > +
> > + if (type != HK_TYPE_DOMAIN)
> > + return -ENOTSUPP;
> > +
> > + trial = kmalloc(cpumask_size(), GFP_KERNEL);
> > + if (!trial)
> > + return -ENOMEM;
> > +
> > + cpumask_andnot(trial, housekeeping_cpumask(HK_TYPE_DOMAIN_BOOT), mask);
>
> Since there's no comment for the 'mask' parameter, would it be better to name it 'isol_mask'? This
> would make it clearer that this is the isolation mask input and what is doing
> here.

Good point! I made the change.

Thanks.

--
Frederic Weisbecker
SUSE Labs