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

From: Mathieu Desnoyers
Date: Mon Nov 17 2025 - 11:52:43 EST


On 2025-11-16 15:48, Thomas Gleixner wrote:
This is truly a bitmap and just conveniently uses a cpumask because the
maximum size of the bitmap is nr_cpu_ids.

But that prevents to do searches for a zero bit in a limited range, which
is helpful to provide an efficient mechanism to consolidate the CID space
when the number of users decreases.

Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Acked-by: Yury Norov (NVIDIA) <yury.norov@xxxxxxxxx>

Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxxxx>

--
Mathieu Desnoyers
EfficiOS Inc.
https://www.efficios.com