diff options
author | Andrea Righi <arighi@nvidia.com> | 2025-05-21 09:34:06 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2025-05-21 07:35:48 -1000 |
commit | a730e3f7a48bc591bfa838c5d922e5a80ea51738 (patch) | |
tree | be03892f2e3eba8ca5866738738cca2814d2c105 /scripts/lib/kdoc/kdoc_re.py | |
parent | e764295a270ce733820681bada131238ab2eb81b (diff) |
sched_ext: idle: Consolidate default idle CPU selection kfuncs
There is no reason to restrict scx_bpf_select_cpu_dfl() invocations to
ops.select_cpu() while allowing scx_bpf_select_cpu_and() to be used from
multiple contexts, as both provide equivalent functionality, with the
latter simply accepting an additional "allowed" cpumask.
Therefore, unify the two APIs, enabling both kfuncs to be used from
ops.select_cpu(), ops.enqueue(), and unlocked contexts (e.g., via BPF
test_run).
This allows schedulers 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>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_re.py')
0 files changed, 0 insertions, 0 deletions