diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-06-28 06:58:30 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-06-28 06:58:30 -0400 |
commit | 3b4550e0e0cd24d8073dc571cecb0d4aa4ca3542 (patch) | |
tree | 44af05a1ac1c85621fa1d06d50d6b127a4cc83bb /include/acpi | |
parent | 8e9914d5efe460600f5948da7ae4c1b6c038a4c0 (diff) | |
parent | fa1675b56537651270e79967b7f1ee4202c83bf6 (diff) |
Merge branch 'acpi-pm'
* acpi-pm:
ACPI / PM: Rework and clean up acpi_dev_pm_get_state()
ACPI / PM: Replace ACPI_STATE_D3 with ACPI_STATE_D3_COLD in device_pm.c
ACPI / PM: Rename function acpi_device_power_state() and make it static
ACPI / PM: acpi_processor_suspend() can be static
xen / ACPI / sleep: Register an acpi_suspend_lowlevel callback.
x86 / ACPI / sleep: Provide registration for acpi_suspend_lowlevel.
Diffstat (limited to 'include/acpi')
-rw-r--r-- | include/acpi/acpi_bus.h | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index cf0817a555e4..cac0dfb2a082 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h | |||
@@ -461,8 +461,6 @@ acpi_status acpi_add_pm_notifier(struct acpi_device *adev, | |||
461 | acpi_notify_handler handler, void *context); | 461 | acpi_notify_handler handler, void *context); |
462 | acpi_status acpi_remove_pm_notifier(struct acpi_device *adev, | 462 | acpi_status acpi_remove_pm_notifier(struct acpi_device *adev, |
463 | acpi_notify_handler handler); | 463 | acpi_notify_handler handler); |
464 | int acpi_device_power_state(struct device *dev, struct acpi_device *adev, | ||
465 | u32 target_state, int d_max_in, int *d_min_p); | ||
466 | int acpi_pm_device_sleep_state(struct device *, int *, int); | 464 | int acpi_pm_device_sleep_state(struct device *, int *, int); |
467 | void acpi_dev_pm_add_dependent(acpi_handle handle, struct device *depdev); | 465 | void acpi_dev_pm_add_dependent(acpi_handle handle, struct device *depdev); |
468 | void acpi_dev_pm_remove_dependent(acpi_handle handle, struct device *depdev); | 466 | void acpi_dev_pm_remove_dependent(acpi_handle handle, struct device *depdev); |
@@ -478,23 +476,13 @@ static inline acpi_status acpi_remove_pm_notifier(struct acpi_device *adev, | |||
478 | { | 476 | { |
479 | return AE_SUPPORT; | 477 | return AE_SUPPORT; |
480 | } | 478 | } |
481 | static inline int __acpi_device_power_state(int m, int *p) | 479 | static inline int acpi_pm_device_sleep_state(struct device *d, int *p, int m) |
482 | { | 480 | { |
483 | if (p) | 481 | if (p) |
484 | *p = ACPI_STATE_D0; | 482 | *p = ACPI_STATE_D0; |
483 | |||
485 | return (m >= ACPI_STATE_D0 && m <= ACPI_STATE_D3) ? m : ACPI_STATE_D0; | 484 | return (m >= ACPI_STATE_D0 && m <= ACPI_STATE_D3) ? m : ACPI_STATE_D0; |
486 | } | 485 | } |
487 | static inline int acpi_device_power_state(struct device *dev, | ||
488 | struct acpi_device *adev, | ||
489 | u32 target_state, int d_max_in, | ||
490 | int *d_min_p) | ||
491 | { | ||
492 | return __acpi_device_power_state(d_max_in, d_min_p); | ||
493 | } | ||
494 | static inline int acpi_pm_device_sleep_state(struct device *d, int *p, int m) | ||
495 | { | ||
496 | return __acpi_device_power_state(m, p); | ||
497 | } | ||
498 | static inline void acpi_dev_pm_add_dependent(acpi_handle handle, | 486 | static inline void acpi_dev_pm_add_dependent(acpi_handle handle, |
499 | struct device *depdev) {} | 487 | struct device *depdev) {} |
500 | static inline void acpi_dev_pm_remove_dependent(acpi_handle handle, | 488 | static inline void acpi_dev_pm_remove_dependent(acpi_handle handle, |