Commit 268a2075 authored by Liu Jinsong's avatar Liu Jinsong Committed by Konrad Rzeszutek Wilk

xen/acpi: move xen_acpi_get_pxm under CONFIG_XEN_DOM0

To avoid compile issue and it's meanigfull only under CONFIG_XEN_DOM0.

In file included from linux/arch/x86/xen/enlighten.c:47:0:
	linux/include/xen/acpi.h:75:76: error: unknown type name ‘acpi_handle’
make[3]: *** [arch/x86/xen/enlighten.o] Error 1
Signed-off-by: default avatarLiu Jinsong <jinsong.liu@intel.com>
[v1: Fixed spelling mistakes]
Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
parent 39adc483
...@@ -57,21 +57,6 @@ void xen_stub_processor_exit(void); ...@@ -57,21 +57,6 @@ void xen_stub_processor_exit(void);
void xen_pcpu_hotplug_sync(void); void xen_pcpu_hotplug_sync(void);
int xen_pcpu_id(uint32_t acpi_id); 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) static inline int xen_acpi_get_pxm(acpi_handle h)
{ {
unsigned long long pxm; unsigned long long pxm;
...@@ -90,4 +75,19 @@ static inline int xen_acpi_get_pxm(acpi_handle h) ...@@ -90,4 +75,19 @@ static inline int xen_acpi_get_pxm(acpi_handle h)
return -ENXIO; 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 */ #endif /* _XEN_ACPI_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment