aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorTejun Heo <[email protected]>2024-09-09 23:42:47 +0000
committerTejun Heo <[email protected]>2024-09-09 23:42:47 +0000
commit4d3ca89bdd31936dcb31cb655801c9e95fe413f3 (patch)
treebd0a683cf7b2b7159adce49145073a63d35d1348 /rust/helpers/helpers.c
parentsched_ext: Rename scx_kfunc_set_sleepable to unlocked and relocate (diff)
downloadkernel-4d3ca89bdd31936dcb31cb655801c9e95fe413f3.tar.gz
kernel-4d3ca89bdd31936dcb31cb655801c9e95fe413f3.zip
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 <[email protected]> Acked-by: David Vernet <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions