]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sched_ext: idle: Introduce scx_bpf_nr_node_ids()
authorAndrea Righi <arighi@nvidia.com>
Mon, 24 Feb 2025 16:49:21 +0000 (17:49 +0100)
committerTejun Heo <tj@kernel.org>
Mon, 24 Feb 2025 17:37:42 +0000 (07:37 -1000)
commit0e9b4c10e833dbcfcdba63497463f1272c5efe4d
treee1f09a4f9a45371d10f420796b9d96faf0aacaf8
parent01059219b0cfdb9fc0d5bd60458e614a3135e6e7
sched_ext: idle: Introduce scx_bpf_nr_node_ids()

Similarly to scx_bpf_nr_cpu_ids(), introduce a new kfunc
scx_bpf_nr_node_ids() to expose the maximum number of NUMA nodes in the
system.

BPF schedulers can use this information together with the new node-aware
kfuncs, for example to create per-node DSQs, validate node IDs, etc.

Signed-off-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/sched/ext.c
tools/sched_ext/include/scx/common.bpf.h
tools/sched_ext/include/scx/compat.bpf.h