]> www.infradead.org Git - users/willy/xarray.git/commit
sched_ext: Inline create_dsq() into scx_bpf_create_dsq()
authorTejun Heo <tj@kernel.org>
Tue, 29 Apr 2025 18:40:10 +0000 (08:40 -1000)
committerTejun Heo <tj@kernel.org>
Tue, 29 Apr 2025 18:40:10 +0000 (08:40 -1000)
commit392b7e08deb6c1eec2732f6f106c6fb7252d3293
treea48a9c136743aa7909ebc63df0aff2f0dbbdde3c
parent17108735b47d125b7649c9b6d4be94cdffc863b9
sched_ext: Inline create_dsq() into scx_bpf_create_dsq()

create_dsq() is only used by scx_bpf_create_dsq() and the separation gets in
the way of making dsq_hash per scx_sched. Inline it into
scx_bpf_create_dsq(). While at it, add unlikely() around
SCX_DSQ_FLAG_BUILTIN test.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Andrea Righi <arighi@nvidia.com>
Acked-by: Changwoo Min <changwoo@igalia.com>
kernel/sched/ext.c