PM: Use a different list of devices for each stage of device suspend
commit8a43a9ab7b329aa8590f8a064df9bf8c80987507
authorRafael J. Wysocki <rjw@sisk.pl>
Wed, 15 Dec 2010 23:50:30 +0000 (16 00:50 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Fri, 24 Dec 2010 14:02:43 +0000 (24 15:02 +0100)
tree7e60bb0dd5f4dcf6531aa3aad196930f02553166
parent2cbb3ce1ad19e66858a4284dd6c4bb958162c483
PM: Use a different list of devices for each stage of device suspend

Instead of keeping all devices in the same list during system suspend
and resume, regardless of what suspend-resume callbacks have been
executed for them already, use separate lists of devices that have
had their ->prepare(), ->suspend() and ->suspend_noirq() callbacks
executed.  This will allow us to simplify the core device suspend and
resume routines.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/base/power/main.c