Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 356935
b: refs/heads/master
c: 268a207
h: refs/heads/master
i:
  356933: e3a2de1
  356931: b66c46c
  356927: f9f9290
v: v3
  • Loading branch information
Liu Jinsong authored and Konrad Rzeszutek Wilk committed Feb 20, 2013
1 parent 7939c70 commit 7a01680
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 39adc483d378f79711f291539f20e3797337892d
refs/heads/master: 268a207563f933ff8e3d876866c324b4247f234e
30 changes: 15 additions & 15 deletions trunk/include/xen/acpi.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,6 @@ void xen_stub_processor_exit(void);
void xen_pcpu_hotplug_sync(void);
int xen_pcpu_id(uint32_t acpi_id);

int xen_acpi_notify_hypervisor_state(u8 sleep_state,
u32 pm1a_cnt, u32 pm1b_cnd);

static inline void xen_acpi_sleep_register(void)
{
if (xen_initial_domain())
acpi_os_set_prepare_sleep(
&xen_acpi_notify_hypervisor_state);
}
#else
static inline void xen_acpi_sleep_register(void)
{
}
#endif

static inline int xen_acpi_get_pxm(acpi_handle h)
{
unsigned long long pxm;
Expand All @@ -90,4 +75,19 @@ static inline int xen_acpi_get_pxm(acpi_handle h)
return -ENXIO;
}

int xen_acpi_notify_hypervisor_state(u8 sleep_state,
u32 pm1a_cnt, u32 pm1b_cnd);

static inline void xen_acpi_sleep_register(void)
{
if (xen_initial_domain())
acpi_os_set_prepare_sleep(
&xen_acpi_notify_hypervisor_state);
}
#else
static inline void xen_acpi_sleep_register(void)
{
}
#endif

#endif /* _XEN_ACPI_H */

0 comments on commit 7a01680

Please sign in to comment.