dect
/
linux-2.6
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/drivers/base/power
Rafael J. Wysocki 775b64d2b6 PM: Acquire device locks on suspend
This patch reorganizes the way suspend and resume notifications are
sent to drivers.  The major changes are that now the PM core acquires
every device semaphore before calling the methods, and calls to
device_add() during suspends will fail, while calls to device_del()
during suspends will block.

It also provides a way to safely remove a suspended device with the
help of the PM core, by using the device_pm_schedule_removal() callback
introduced specifically for this purpose, and updates two drivers (msr
and cpuid) that need to use it.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2008-01-24 20:40:04 -08:00
..
Makefile create /sys/.../power when CONFIG_PM is set 2007-11-28 13:53:53 -08:00
main.c PM: Acquire device locks on suspend 2008-01-24 20:40:04 -08:00
power.h PM: Acquire device locks on suspend 2008-01-24 20:40:04 -08:00
shutdown.c Fix ThinkPad T42 poweroff failure introduced by by "PM: Introduce pm_power_off_prepare" 2007-07-26 12:13:06 -07:00
sysfs.c PM: Remove deprecated sysfs files 2007-07-18 15:49:49 -07:00
trace.c pm_trace displays the wrong time from the RTC 2007-10-18 14:37:19 -07:00