PM: Allow devices to be removed during late suspend and early resume
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 11 Nov 2010 00:50:53 +0000 (01:50 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Thu, 11 Nov 2010 00:50:53 +0000 (01:50 +0100)
commitd08a5ace18dce9b18d8eb56bb6c0feef082b1b33
tree401e2aa7312a2ae682433e6b320fee9feab071bd
parentf6614b7bb405a9b35dd28baea989a749492c46b2
PM: Allow devices to be removed during late suspend and early resume

Holding dpm_list_mtx across late suspend and early resume of devices
is problematic for the PCMCIA subsystem and doesn't allow device
objects to be removed by late suspend and early resume driver
callbacks.  This appears to be overly restrictive, as drivers are
generally allowed to remove device objects in other phases of suspend
and resume.  Therefore rework dpm_{suspend|resume}_noirq() so that
they don't have to hold dpm_list_mtx all the time.

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