diff options
author | Ben Guthro <benjamin.guthro@citrix.com> | 2013-07-30 08:24:54 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-07-31 08:22:35 -0400 |
commit | be6b25d15f5e67bc49b90ed55feb1dd947f4df2c (patch) | |
tree | 1de57c5826b46527732ad02acddc42b018076dfd /include/xen/interface | |
parent | d6b47b122473885abc882e337ac2d321bbcfb378 (diff) |
xen / ACPI: notify xen when reduced hardware sleep is available
Use the acpi_os_prepare_extended_sleep() callback to notify xen
to make use of the reduced hardware sleep functionality
The xen hypervisor change underlying this is commit 62d1a69
("ACPI: support v5 (reduced HW) sleep interface") on the master
branch of git://xenbits.xen.org/xen.git.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Ben Guthro <benjamin.guthro@citrix.com>
Acked-by: Konrad Wilk <konrad.wilk@oracle.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/xen/interface')
-rw-r--r-- | include/xen/interface/platform.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/xen/interface/platform.h b/include/xen/interface/platform.h index c57d5f67f702..f1331e3e7271 100644 --- a/include/xen/interface/platform.h +++ b/include/xen/interface/platform.h | |||
@@ -152,10 +152,11 @@ DEFINE_GUEST_HANDLE_STRUCT(xenpf_firmware_info_t); | |||
152 | #define XENPF_enter_acpi_sleep 51 | 152 | #define XENPF_enter_acpi_sleep 51 |
153 | struct xenpf_enter_acpi_sleep { | 153 | struct xenpf_enter_acpi_sleep { |
154 | /* IN variables */ | 154 | /* IN variables */ |
155 | uint16_t pm1a_cnt_val; /* PM1a control value. */ | 155 | uint16_t val_a; /* PM1a control / sleep type A. */ |
156 | uint16_t pm1b_cnt_val; /* PM1b control value. */ | 156 | uint16_t val_b; /* PM1b control / sleep type B. */ |
157 | uint32_t sleep_state; /* Which state to enter (Sn). */ | 157 | uint32_t sleep_state; /* Which state to enter (Sn). */ |
158 | uint32_t flags; /* Must be zero. */ | 158 | #define XENPF_ACPI_SLEEP_EXTENDED 0x00000001 |
159 | uint32_t flags; /* XENPF_ACPI_SLEEP_*. */ | ||
159 | }; | 160 | }; |
160 | DEFINE_GUEST_HANDLE_STRUCT(xenpf_enter_acpi_sleep_t); | 161 | DEFINE_GUEST_HANDLE_STRUCT(xenpf_enter_acpi_sleep_t); |
161 | 162 | ||