diff options
| author | Andrea Righi <arighi@nvidia.com> | 2026-08-03 08:08:12 +0200 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-08-03 06:20:51 -1000 |
| commit | ba190ed3f47f0e177e4be525d4a6330bd2fbd1f1 (patch) | |
| tree | 0f0d0ef2c9541082ec4ce4a5896ac2b4593f77a7 /tools/perf/scripts/python/flamegraph.py | |
| parent | c5b9316cf3d5371d53022352c7c9d248e14b801f (diff) | |
sched_ext: Initialize idle masks as busy
The built-in idle masks are reset with all online CPUs marked idle
before sched_ext is enabled. Busy CPUs can therefore be incorrectly
advertised as idle until their next idle transition.
Initialize the masks empty so that the initial state is conservative.
When bypass is lifted, every CPU is rescheduled and idle-to-idle
re-picks populate the masks with CPUs that are actually idle. Later
idle transitions keep the masks up to date.
Suggested-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrea Righi <arighi@nvidia.com>
Reviewed-by: Kuba Piecuch <jpiecuch@google.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
