diff options
author | Ben Guthro <benjamin.guthro@citrix.com> | 2013-07-30 08:24:52 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-07-31 08:20:39 -0400 |
commit | d6b47b122473885abc882e337ac2d321bbcfb378 (patch) | |
tree | 878258457b8e9dbeaf1dbd5c0d57b508f96d02d8 /drivers/acpi/acpica/hwesleep.c | |
parent | 5ae90d8e467e625e447000cb4335c4db973b1095 (diff) |
ACPI / sleep: Introduce acpi_os_prepare_extended_sleep() for extended sleep path
Like acpi_os_prepare_sleep(), register a callback for use in systems
like tboot, and xen, which have system specific requirements outside
of ACPICA. This mirrors the functionality in acpi_os_prepare_sleep(),
called from acpi_hw_sleep()
Signed-off-by: Ben Guthro <benjamin.guthro@citrix.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/hwesleep.c')
-rw-r--r-- | drivers/acpi/acpica/hwesleep.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/acpi/acpica/hwesleep.c b/drivers/acpi/acpica/hwesleep.c index 5e5f76230f5e..414076818d40 100644 --- a/drivers/acpi/acpica/hwesleep.c +++ b/drivers/acpi/acpica/hwesleep.c | |||
@@ -43,6 +43,7 @@ | |||
43 | */ | 43 | */ |
44 | 44 | ||
45 | #include <acpi/acpi.h> | 45 | #include <acpi/acpi.h> |
46 | #include <linux/acpi.h> | ||
46 | #include "accommon.h" | 47 | #include "accommon.h" |
47 | 48 | ||
48 | #define _COMPONENT ACPI_HARDWARE | 49 | #define _COMPONENT ACPI_HARDWARE |
@@ -128,6 +129,14 @@ acpi_status acpi_hw_extended_sleep(u8 sleep_state) | |||
128 | 129 | ||
129 | ACPI_FLUSH_CPU_CACHE(); | 130 | ACPI_FLUSH_CPU_CACHE(); |
130 | 131 | ||
132 | status = acpi_os_prepare_extended_sleep(sleep_state, | ||
133 | acpi_gbl_sleep_type_a, | ||
134 | acpi_gbl_sleep_type_b); | ||
135 | if (ACPI_SKIP(status)) | ||
136 | return_ACPI_STATUS(AE_OK); | ||
137 | if (ACPI_FAILURE(status)) | ||
138 | return_ACPI_STATUS(status); | ||
139 | |||
131 | /* | 140 | /* |
132 | * Set the SLP_TYP and SLP_EN bits. | 141 | * Set the SLP_TYP and SLP_EN bits. |
133 | * | 142 | * |