diff options
author | Ulf Hansson <[email protected]> | 2017-03-20 11:19:22 +0100 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2017-03-29 00:11:34 +0200 |
commit | 1c14967c6ea0deb3db4a974b1de519f5a5593ef4 (patch) | |
tree | 37685d825177673bcb3d82c577ee36fefc1eac01 /tools/perf/scripts/python/stackcollapse.py | |
parent | ffaa42e8a40b7f1041e36b022cd28b7c45e2b564 (diff) |
PM / Domains: Respect errors from genpd's ->power_off() callback
The current code in genpd_sync_power_off(), doesn't care about potential
errors being returned from genpd's ->power_off() callback.
Obviously this behaviour could lead to problems, such as incorrectly
setting the genpd's status to GPD_STATE_POWER_OFF, but also to incorrectly
decrease the subdomain count for the masters, which potentially allows them
to be powered off in the next recursive call to genpd_sync_power_off().
Let's fix this behaviour by bailing out when the ->power_off() callback
returns an error code.
Signed-off-by: Ulf Hansson <[email protected]>
Reviewed-by: Viresh Kumar <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Reviewed-by: Bartlomiej Zolnierkiewicz <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions