]> Gentwo Git Trees - linux/.git/commit
sched/mmcid: Convert mm CID mask to a bitmap
authorThomas Gleixner <tglx@linutronix.de>
Wed, 19 Nov 2025 17:27:03 +0000 (18:27 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 25 Nov 2025 18:45:40 +0000 (19:45 +0100)
commit539115f08cf850b9fdc6526b31da0839ff6c1631
tree4de423fb43b543bd798c8de23be934bbbaace9aa
parent35a5c37cb9f1f947dff18e7cfc75a8cfcfd557ca
sched/mmcid: Convert mm CID mask to a bitmap

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@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Acked-by: Yury Norov (NVIDIA) <yury.norov@gmail.com>
Link: https://patch.msgid.link/20251119172549.642866767@linutronix.de
include/linux/mm_types.h
kernel/sched/core.c
kernel/sched/sched.h