Re: [patch V3 10/20] sched/mmcid: Convert mm CID mask to a bitmap

Mathieu Desnoyers
2025-10-30T13:59:15Z

On 2025-10-29 09:09, Thomas Gleixner wrote:
[...]
> @@ -1363,7 +1363,7 @@ static inline void mm_init_cid(struct mm
> mm->mm_cid.nr_cpus_allowed = p->nr_cpus_allowed;
> raw_spin_lock_init(&mm->mm_cid.lock);
> cpumask_copy(mm_cpus_allowed(mm), &p->cpus_mask);
> - cpumask_clear(mm_cidmask(mm));
> + bitmap_zero(mm_cidmask(mm), bitmap_size(num_possible_cpus()));

Then perhaps you'll also want to update mm_cid_size() to:

return cpumask_size() + bitmap_size(num_possible_cpus()); /* mm_cpus_allowed(), mm_cidmask(). */

Thanks,

Mathieu

--
Mathieu Desnoyers
EfficiOS Inc.