]> git.ipfire.org Git - thirdparty/linux.git/commit
PM: sleep: Make suspend of devices more asynchronous
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 14 Mar 2025 13:14:30 +0000 (14:14 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 22 Apr 2025 11:57:00 +0000 (13:57 +0200)
commit443046d1ad66607f324c604b9fbdf11266fa8aad
tree9711d77fa7313d0dd487d82ca722b03578b6ec69
parentaa7a9275ab814705b60ba8274277d91da6ab6122
PM: sleep: Make suspend of devices more asynchronous

In analogy with previous changes, make device_suspend_late() and
device_suspend_noirq() start the async suspend of the device's parent
after the device itself has been processed and make dpm_suspend_late()
and dpm_noirq_suspend_devices() start processing "async" leaf devices
(that is, devices without children) upfront so they don't need to wait
for the other devices they don't depend on.

This change reduces the total duration of device suspend on some systems
measurably, but not significantly.

Suggested-by: Saravana Kannan <saravanak@google.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/1924195.CQOukoFCf9@rjwysocki.net
drivers/base/power/main.c