]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sched_ext: idle: Introduce SCX_OPS_BUILTIN_IDLE_PER_NODE
authorAndrea Righi <arighi@nvidia.com>
Fri, 14 Feb 2025 19:40:05 +0000 (20:40 +0100)
committerTejun Heo <tj@kernel.org>
Sun, 16 Feb 2025 16:52:20 +0000 (06:52 -1000)
commit0aaaf89df86da28fa4928faa55a529beac1d6cab
treed7bd7d003bcc123659cc30b6295b2c05c6ce27c7
parentd73249f88743df63a2bdce0e3153369963113710
sched_ext: idle: Introduce SCX_OPS_BUILTIN_IDLE_PER_NODE

Add the new scheduler flag SCX_OPS_BUILTIN_IDLE_PER_NODE, which allows
BPF schedulers to select between using a global flat idle cpumask or
multiple per-node cpumasks.

This only introduces the flag and the mechanism to enable/disable this
feature without affecting any scheduling behavior.

Cc: Yury Norov [NVIDIA] <yury.norov@gmail.com>
Signed-off-by: Andrea Righi <arighi@nvidia.com>
Reviewed-by: Yury Norov [NVIDIA] <yury.norov@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/sched/ext.c
kernel/sched/ext_idle.c
kernel/sched/ext_idle.h
tools/sched_ext/include/scx/compat.h