From 52ae0107c8cb0dd1425a012460d8be8a568a21ae Mon Sep 17 00:00:00 2001 From: kmacy Date: Wed, 20 Aug 2008 03:28:32 +0000 Subject: don't use cpu_idle_acpi under xen MFC after: 1 month --- sys/i386/i386/machdep.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sys') diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c index 8c91554..2247558 100644 --- a/sys/i386/i386/machdep.c +++ b/sys/i386/i386/machdep.c @@ -1149,9 +1149,14 @@ cpu_halt(void) HYPERVISOR_shutdown(SHUTDOWN_poweroff); } +int scheduler_running; + static void cpu_idle_hlt(int busy) { + + scheduler_running = 1; + enable_intr(); idle_block(); } @@ -1199,7 +1204,11 @@ cpu_idle_spin(int busy) return; } +#ifdef XEN +void (*cpu_idle_fn)(int) = cpu_idle_hlt; +#else void (*cpu_idle_fn)(int) = cpu_idle_acpi; +#endif void cpu_idle(int busy) -- cgit v1.1