aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorRafael J. Wysocki <[email protected]>2020-10-22 17:38:22 +0200
committerRafael J. Wysocki <[email protected]>2020-11-02 18:14:07 +0100
commit9226c504e364158a17a68ff1fe9d67d266922f50 (patch)
treeaa9065e2b60f6e533dc6f012aaf34a3791b86bb1 /tools/perf/scripts/python/exported-sql-viewer.py
parentd6e36668598154820177bfd78c1621d8e6c580a2 (diff)
PM: runtime: Resume the device earlier in __device_release_driver()
Since the device is resumed from runtime-suspend in __device_release_driver() anyway, it is better to do that before looking for busy managed device links from it to consumers, because if there are any, device_links_unbind_consumers() will be called and it will cause the consumer devices' drivers to unbind, so the consumer devices will be runtime-resumed. In turn, resuming each consumer device will cause the supplier to be resumed and when the runtime PM references from the given consumer to it are dropped, it may be suspended. Then, the runtime-resume of the next consumer will cause the supplier to resume again and so on. Update the code accordingly. Signed-off-by: Rafael J. Wysocki <[email protected]> Fixes: 9ed9895370ae ("driver core: Functional dependencies tracking support") Cc: All applicable <[email protected]> # All applicable Tested-by: Xiang Chen <[email protected]> Reviewed-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions