]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tools/sched_ext: Order single-cid cmask helpers as (cid, mask)
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)
commita83f9edf7aba9421bfb53d181691fbcf9f34ce72
tree7bef93d0ae47d51d2a8dc1b3538dd900e46de744
parent41de4c70b0036646ae224b05c47c7756c5c2178d
tools/sched_ext: Order single-cid cmask helpers as (cid, mask)

The BPF arena single-cid cmask helpers take the cmask first and the cid
second. Reorder them to (cid, mask) to match the kernel-side helpers and
the test_bit(nr, addr), cpumask_test_cpu(cpu, mask) convention. Range and
iteration helpers keep (mask, start).

Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Andrea Righi <arighi@nvidia.com>
tools/sched_ext/include/scx/cid.bpf.h
tools/sched_ext/scx_qmap.bpf.c