]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: Introduce acpi_device_sleep_wake function
authorRafael J. Wysocki <rjw@sisk.pl>
Mon, 7 Jul 2008 01:33:34 +0000 (03:33 +0200)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Mon, 7 Jul 2008 23:25:57 +0000 (16:25 -0700)
commita7d29fda3ea21f71a8497d8c5012fce6b7f4f591
tree6868acb2376388e5c02ed45a685ac31cc31a0bb1
parent6c8a36a76024a9e96bbda4b4cd87e495a0c235ca
ACPI: Introduce acpi_device_sleep_wake function

The currect ACPI code attempts to execute _PSW at three different
places and in one of them only it tries to execute _DSW before _PSW,
which is inconsistent with the other two cases.

Move the execution of _DSW and _PSW into a separate function called
acpi_device_sleep_wake() and call it wherever appropriate instead of
executing _DSW and/or _PSW directly.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/acpi/power.c
drivers/acpi/scan.c
drivers/acpi/sleep/wakeup.c
include/acpi/acpi_drivers.h