]> git.ipfire.org Git - thirdparty/linux.git/commit
sched_ext: Add scx_cmask_test() and scx_cmask_for_each_cid()
authorTejun Heo <tj@kernel.org>
Thu, 4 Jun 2026 01:46:56 +0000 (15:46 -1000)
committerTejun Heo <tj@kernel.org>
Thu, 4 Jun 2026 01:46:56 +0000 (15:46 -1000)
commit5839c07e89bbbc0542fcaae9491ae7970cdeebb8
tree95b911ec498b86c2b266d878fd31442d7c144644
parenta83f9edf7aba9421bfb53d181691fbcf9f34ce72
sched_ext: Add scx_cmask_test() and scx_cmask_for_each_cid()

Add single-bit test and iterator over set cids in an scx_cmask.

v2: Bound scx_cmask_for_each_cid() to the active span. (sashiko AI)

Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Andrea Righi <arighi@nvidia.com>
kernel/sched/ext_cid.h