]> www.infradead.org Git - users/willy/xarray.git/commit
sched_ext: Remove scx_ops_enq_* static_keys
authorTejun Heo <tj@kernel.org>
Wed, 9 Apr 2025 19:05:59 +0000 (09:05 -1000)
committerTejun Heo <tj@kernel.org>
Wed, 9 Apr 2025 19:05:59 +0000 (09:05 -1000)
commitcc39454c341e02b929e565f8a37cfe9b18c7a0a9
treed1582284ac42a54cb95c19c936f080442da5cebc
parentd75ee2d6781f4c04e56a467d88f710a758ad8b81
sched_ext: Remove scx_ops_enq_* static_keys

scx_ops_enq_last/exiting/migration_disabled are used to encode the
corresponding SCX_OPS_ flags into static_keys. These flags aren't hot enough
for static_key usage to make any meaningful difference and are made
static_keys 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_keys and test the ops flags 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