+10
−12
Loading
scx_has_op is used to encode which ops are implemented by the BPF scheduler into an array of static_keys. While this saves a bit of branching overhead, that is unlikely to be noticeable compared to the overall cost. As the global static_keys can't work with the planned hierarchical multiple scheduler support, replace the static_key array with a bitmap. 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>