summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/flamegraph-record
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2026-07-15 13:37:59 -1000
committerTejun Heo <tj@kernel.org>2026-07-15 13:37:59 -1000
commit8946dbd3aa91acfb75b1633859290ba248e313b2 (patch)
tree54f36c79f87dd39f2cae3b69cde6605dd6ff5de9 /tools/perf/scripts/python/bin/flamegraph-record
parent6ba3bd6f22314072d36949767e1d1192b97e5ba4 (diff)
sched_ext: Add the scx_has_subs static key and gate sub-sched hot paths
With CONFIG_EXT_SUB_SCHED=y but no sub-scheduler attached - the common case - hot paths still pay for sub-sched bookkeeping. Gate it behind __scx_has_subs, a static key counting live sub-schedulers, so that a root-only system stops paying. Most conversions are simple skip-if-no-sub tests. scx_idle_notify() is special - it's a hierarchy walk, so give it a fast path which notifies the root directly using the same tests as the walk. A pending SCX_RQ_SUB_IDLE_RENOTIFY can be ignored as no sub can be owed one and the caller clears the flag either way. Suggested-by: Andrea Righi <arighi@nvidia.com> Signed-off-by: Tejun Heo <tj@kernel.org> Reviewed-by: Andrea Righi <arighi@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/flamegraph-record')
0 files changed, 0 insertions, 0 deletions