summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>2026-07-09 10:46:33 +0200
committerUlf Hansson <ulfh@kernel.org>2026-07-13 12:48:44 +0200
commit1f1bbce068b76ca04b3c23164a91360da0c06764 (patch)
tree158a144d51c4e9442ab5fde39888dafc77e982b1 /tools/perf/scripts/python/bin/stackcollapse-report
parent329b36b51c0476a88430b1c726d3bc6f80dccb5c (diff)
pmdomain: mediatek: Respect PD relationships during error cleanup
In case any probe error occurs (usually, a probe deferral) the power domains shall be cleaned up while respecting their child to parent relationship, or the system may freeze. In order to do that without any memory footprint impacts after the fact, allocate a temporary array in the probe function and use it to store the indices of the added power domains in the correct order. This will be used in the error cleanup path and will be freed at the end regardless of the probe status as, when the probing succeeds, the genpd API takes care of unregistering all PDs in the correct order anyway. Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.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