diff options
author | Tejun Heo <tj@kernel.org> | 2024-09-09 13:42:47 -1000 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2024-09-09 13:42:47 -1000 |
commit | 4d3ca89bdd31936dcb31cb655801c9e95fe413f3 (patch) | |
tree | bd0a683cf7b2b7159adce49145073a63d35d1348 /tools/perf/scripts/python/sched-migration.py | |
parent | fdaedba2f96f6755f505c454ca7408930f4fe1bf (diff) |
sched_ext: Refactor consume_remote_task()
The tricky p->scx.holding_cpu handling was split across
consume_remote_task() body and move_task_to_local_dsq(). Refactor such that:
- All the tricky part is now in the new unlink_dsq_and_lock_src_rq() with
consolidated documentation.
- move_task_to_local_dsq() now implements straightforward task migration
making it easier to use in other places.
- dispatch_to_local_dsq() is another user move_task_to_local_dsq(). The
usage is updated accordingly. This makes the local and remote cases more
symmetric.
No functional changes intended.
v2: s/task_rq/src_rq/ for consistency.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: David Vernet <void@manifault.com>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions