obj-y += cstate.o processor.o
endif
+disabled-obj-$(CONFIG_XEN) := cstate.o wakeup.o
#include <asm/smp.h>
+#ifndef CONFIG_ACPI_PV_SLEEP
/* address in low memory of the wakeup routine. */
unsigned long acpi_wakeup_address = 0;
unsigned long acpi_video_flags;
extern char wakeup_start, wakeup_end;
extern unsigned long FASTCALL(acpi_copy_wakeup_routine(unsigned long));
+#endif
/**
* acpi_save_state_mem - save kernel state
*/
void __init acpi_reserve_bootmem(void)
{
+#ifndef CONFIG_ACPI_PV_SLEEP
if ((&wakeup_end - &wakeup_start) > PAGE_SIZE) {
printk(KERN_ERR
"ACPI: Wakeup code way too big, S3 disabled.\n");
acpi_wakeup_address = (unsigned long)alloc_bootmem_low(PAGE_SIZE);
if (!acpi_wakeup_address)
printk(KERN_ERR "ACPI: Cannot allocate lowmem, S3 disabled.\n");
+#endif
}
+#ifndef CONFIG_ACPI_PV_SLEEP
static int __init acpi_sleep_setup(char *str)
{
while ((str != NULL) && (*str != '\0')) {
core_initcall(acpisleep_dmi_init);
-#ifdef CONFIG_ACPI_PV_SLEEP
+#else /* CONFIG_ACPI_PV_SLEEP */
#include <asm/hypervisor.h>
#include <xen/interface/platform.h>
int acpi_notify_hypervisor_state(u8 sleep_state,
ifneq ($(CONFIG_ACPI_PROCESSOR),)
obj-y += processor.o
processor-y := ../../../i386/kernel/acpi/processor.o ../../../i386/kernel/acpi/cstate.o
+processor-$(CONFIG_XEN) := ../../../i386/kernel/acpi/processor.o
endif
+
+disabled-obj-$(CONFIG_XEN) := wakeup.o
#ifdef CONFIG_ACPI_SLEEP
+#ifndef CONFIG_ACPI_PV_SLEEP
/* address in low memory of the wakeup routine. */
unsigned long acpi_wakeup_address = 0;
unsigned long acpi_video_flags;
WARN_ON(num_online_cpus() != 1);
local_flush_tlb();
}
+#endif
/**
* acpi_save_state_mem - save kernel state
*/
void __init acpi_reserve_bootmem(void)
{
+#ifndef CONFIG_ACPI_PV_SLEEP
acpi_wakeup_address = (unsigned long)alloc_bootmem_low(PAGE_SIZE);
if ((&wakeup_end - &wakeup_start) > PAGE_SIZE)
printk(KERN_CRIT
"ACPI: Wakeup code way too big, will crash on attempt to suspend\n");
+#endif
}
+#ifndef CONFIG_ACPI_PV_SLEEP
static int __init acpi_sleep_setup(char *str)
{
while ((str != NULL) && (*str != '\0')) {
__setup("acpi_sleep=", acpi_sleep_setup);
-#ifdef CONFIG_ACPI_PV_SLEEP
+#else /* CONFIG_ACPI_PV_SLEEP */
#include <asm/hypervisor.h>
#include <xen/interface/platform.h>
int acpi_notify_hypervisor_state(u8 sleep_state,
extern u8 x86_acpiid_to_apicid[];
+#ifndef CONFIG_XEN
#define ARCH_HAS_POWER_INIT 1
+#endif
#endif /*__KERNEL__*/
extern u8 x86_acpiid_to_apicid[];
+#ifndef CONFIG_XEN
#define ARCH_HAS_POWER_INIT 1
+#endif
extern int acpi_skip_timer_override;
.proc_handler = &proc_dointvec,
},
#endif
-#ifdef CONFIG_ACPI_SLEEP
+#if defined(CONFIG_ACPI_SLEEP) && !defined(CONFIG_ACPI_PV_SLEEP)
{
.ctl_name = KERN_ACPI_VIDEO_FLAGS,
.procname = "acpi_video_flags",