diff options
| author | Kevin Hilman (TI) <khilman@baylibre.com> | 2026-09-24 13:29:58 -0700 |
|---|---|---|
| committer | Ulf Hansson <ulfh@kernel.org> | 2026-09-28 15:28:37 +0200 |
| commit | 44ff5057d75c5680090743233de5a721eb9dabe4 (patch) | |
| tree | 9c338428a63cddfc25376b1984022e4886489235 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | b7cbbc33bc4eaa9c1fd4485527ab167a736d5505 (diff) | |
pmdomain: core: add genpd_for_each_child() helper
Add a new internal helper function genpd_for_each_child() that recursively
iterates over all devices in a PM domain and its child domains (subdomains).
This helper is useful for governors and other core PM domain code that needs
to examine or apply operations to all devices within a domain hierarchy.
The function takes a callback that is invoked for each device, and supports
early termination if the callback returns a non-zero value.
The helper is defined in a new internal header drivers/pmdomain/core.h and
implemented in drivers/pmdomain/core.c, making it available to other PM
domain subsystem components.
The first user of this helper is the cpu_system_power_down_ok() governor
function, which uses it to check device QoS latency constraints across the
entire domain hierarchy.
Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
Signed-off-by: Kevin Hilman (TI) <khilman@baylibre.com>
Signed-off-by: Ulf Hansson <ulfh@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
