]> www.infradead.org Git - users/willy/xarray.git/commit
sched_ext: Remove scx_ops_allow_queued_wakeup static_key
authorTejun Heo <tj@kernel.org>
Wed, 9 Apr 2025 19:06:00 +0000 (09:06 -1000)
committerTejun Heo <tj@kernel.org>
Wed, 9 Apr 2025 19:06:00 +0000 (09:06 -1000)
commit743354e3bb7238552cda70a5f39ba6e946a899fd
tree3dc509045c34aef6f706b1fd559392fb112d18c8
parent54d2e717bc5f419b111915adfdec7ecc1ca8cf90
sched_ext: Remove scx_ops_allow_queued_wakeup static_key

scx_ops_allow_queued_wakeup is used to encode SCX_OPS_ALLOW_QUEUED_WAKEUP
into a static_key. The test is gated behind scx_enabled(), and, even when
sched_ext is enabled, is unlikely for the static_key usage to make any
meaningful difference. It is made to use a static_key mostly because there
was no reason not to. However, global static_keys can't work with the
planned hierarchical multiple scheduler support. Remove the static_key and
instead test SCX_OPS_ALLOW_QUEUED_WAKEUP directly.

In repeated hackbench runs before and after static_keys removal on an AMD
Ryzen 3900X, I couldn't tell any measurable performance difference.

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