]> www.infradead.org Git - users/willy/xarray.git/commit
sched_ext: Make find_dsq_for_dispatch() handle SCX_DSQ_LOCAL_ON
authorTejun Heo <tj@kernel.org>
Mon, 9 Sep 2024 23:42:47 +0000 (13:42 -1000)
committerTejun Heo <tj@kernel.org>
Mon, 9 Sep 2024 23:42:47 +0000 (13:42 -1000)
commite683949a4b8c954fcbaf6b3ba87bd925bf83e481
tree204200dd0441c1f5a8f01b0c3f57e0fac4bcfa3e
parent4d3ca89bdd31936dcb31cb655801c9e95fe413f3
sched_ext: Make find_dsq_for_dispatch() handle SCX_DSQ_LOCAL_ON

find_dsq_for_dispatch() handles all DSQ IDs except SCX_DSQ_LOCAL_ON.
Instead, each caller is hanlding SCX_DSQ_LOCAL_ON before calling it. Move
SCX_DSQ_LOCAL_ON lookup into find_dsq_for_dispatch() to remove duplicate
code in direct_dispatch() and dispatch_to_local_dsq().

No functional changes intended.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: David Vernet <void@manifault.com>
kernel/sched/ext.c