aboutsummaryrefslogtreecommitdiffstats
path: root/include/acpi
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2012-06-23 13:59:43 -0400
committerBjorn Helgaas <bhelgaas@google.com>2012-06-23 13:59:43 -0400
commit35e7f73c32ad44a931d918d04e317a7fb0c63e6e (patch)
treee3cb8c89c8230aaa45a0f1b101decdc3b9831938 /include/acpi
parente5028b52e46eb1379d78d136bd0890705f331183 (diff)
parent448bd857d48e69b33ef323739dc6d8ca20d4cda7 (diff)
Merge branch 'topic/huang-d3cold-v7' into next
* topic/huang-d3cold-v7: PCI/PM: add PCIe runtime D3cold support PCI: do not call pci_set_power_state with PCI_D3cold PCI/PM: add runtime PM support to PCIe port ACPI/PM: specify lowest allowed state for device sleep state
Diffstat (limited to 'include/acpi')
-rw-r--r--include/acpi/acpi_bus.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
index 457974073994..6a6c46e84ae3 100644
--- a/include/acpi/acpi_bus.h
+++ b/include/acpi/acpi_bus.h
@@ -415,13 +415,13 @@ int acpi_enable_wakeup_device_power(struct acpi_device *dev, int state);
415int acpi_disable_wakeup_device_power(struct acpi_device *dev); 415int acpi_disable_wakeup_device_power(struct acpi_device *dev);
416 416
417#ifdef CONFIG_PM 417#ifdef CONFIG_PM
418int acpi_pm_device_sleep_state(struct device *, int *); 418int acpi_pm_device_sleep_state(struct device *, int *, int);
419#else 419#else
420static inline int acpi_pm_device_sleep_state(struct device *d, int *p) 420static inline int acpi_pm_device_sleep_state(struct device *d, int *p, int m)
421{ 421{
422 if (p) 422 if (p)
423 *p = ACPI_STATE_D0; 423 *p = ACPI_STATE_D0;
424 return ACPI_STATE_D3; 424 return (m >= ACPI_STATE_D0 && m <= ACPI_STATE_D3) ? m : ACPI_STATE_D0;
425} 425}
426#endif 426#endif
427 427