diff options
author | Rafael J. Wysocki | 2010-10-14 23:24:13 +0200 |
---|---|---|
committer | Len Brown | 2010-10-15 22:25:15 +0200 |
commit | 761afb869f649ea23e2dea7bfe9b550d3a1b7631 (patch) | |
tree | 816a6eb04802b1befedaf07f9c1359dd4dc7a9f6 /drivers/edac | |
parent | Linux 2.6.36-rc8 (diff) | |
download | kernel-qcow2-linux-761afb869f649ea23e2dea7bfe9b550d3a1b7631.tar.gz kernel-qcow2-linux-761afb869f649ea23e2dea7bfe9b550d3a1b7631.tar.xz kernel-qcow2-linux-761afb869f649ea23e2dea7bfe9b550d3a1b7631.zip |
ACPI / PM: Fix problems with acpi_pm_device_sleep_state()
There is a number of problems with acpi_pm_device_sleep_state() now.
First, if _S0W is not defined, it prevents devices from being put
into D3 by PCI runtime PM, which shouldn't happen. Second, it
shouldn't use adev->wakeup.state.enabled, because if it's set, it
only means that either the device is permanently enabled to wake up
the system, or that it has been enabled to do that through
/proc/acpi/wakeup. Finally, it should be compiled if CONFIG_PM_SLEEP
is not set, so that PCI runtime PM works correctly in that case.
Fix these problems.
Reported-by: Matthew Garrett <mjg59@srcf.ucam.org>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/edac')
0 files changed, 0 insertions, 0 deletions