diff options
| author | Tejun Heo <tj@kernel.org> | 2026-07-21 11:25:14 -1000 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-07-21 22:27:07 -1000 |
| commit | 5f860e647de21269c3b7f03be9d892d6af46b972 (patch) | |
| tree | 3ea21bf9ab8c31105cab4e59faa8eba5350b8106 /tools/perf/scripts/python/task-analyzer.py | |
| parent | 2c91169377f44e2f2b0b79bc0365f0722987a650 (diff) | |
sched_ext: Skip the default CPU selection while bypassing
select_task_rq_scx() falls into the default path when the scheduler has no
ops.select_cpu or is bypassing. There it calls scx_select_cpu_dfl() and
direct-dispatches to the picked CPU's local DSQ.
While bypassing, neither does anything: the enqueue path routes the task to
a bypass DSQ before consulting the direct-dispatch target, so the direct
dispatch never happens, and the CPU pick at most shifts which CPU's bypass
DSQ receives the task. Worse, when the scheduler does its own idle tracking,
the built-in idle cpumasks the pick consults are not even updated, so it
doesn't work anyway.
Return prev_cpu without the default selection while bypassing and let the
bypass enqueue place the task.
Reviewed-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
