]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sched_ext: idle: Allow scx_bpf_select_cpu_and() from unlocked context
authorAndrea Righi <arighi@nvidia.com>
Thu, 15 May 2025 19:11:44 +0000 (21:11 +0200)
committerTejun Heo <tj@kernel.org>
Tue, 20 May 2025 20:24:11 +0000 (10:24 -1000)
commit4ac760bdf2b666a11ac66460bbc83c63bc9b1797
tree55621f30571d2dc167e745b1b13b43b122ee786d
parent686d1337237161833684d8554c6e3ea2d692bd41
sched_ext: idle: Allow scx_bpf_select_cpu_and() from unlocked context

Allow scx_bpf_select_cpu_and() to be used from an unlocked context, in
addition to ops.enqueue() or ops.select_cpu().

This enables schedulers, including user-space ones, to implement a
consistent idle CPU selection policy and helps reduce code duplication.

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