diff options
author | Len Brown <len.brown@intel.com> | 2011-04-01 18:28:35 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2011-08-03 19:06:36 -0400 |
commit | d91ee5863b71e8c90eaf6035bff3078a85e2e7b5 (patch) | |
tree | 7c4972d8d6f614f656720ec686a6288de68f4af3 /arch/x86 | |
parent | 62027aea23fcd14478abdddd3b74a4e0f5fb2984 (diff) |
cpuidle: replace xen access to x86 pm_idle and default_idle
When a Xen Dom0 kernel boots on a hypervisor, it gets access
to the raw-hardware ACPI tables. While it parses the idle tables
for the hypervisor's beneift, it uses HLT for its own idle.
Rather than have xen scribble on pm_idle and access default_idle,
have it simply disable_cpuidle() so acpi_idle will not load and
architecture default HLT will be used.
cc: xen-devel@lists.xensource.com
Tested-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: H. Peter Anvin <hpa@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/xen/setup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/xen/setup.c b/arch/x86/xen/setup.c index 60aeeb56948f..a9627e2e3295 100644 --- a/arch/x86/xen/setup.c +++ b/arch/x86/xen/setup.c | |||
@@ -9,6 +9,7 @@ | |||
9 | #include <linux/mm.h> | 9 | #include <linux/mm.h> |
10 | #include <linux/pm.h> | 10 | #include <linux/pm.h> |
11 | #include <linux/memblock.h> | 11 | #include <linux/memblock.h> |
12 | #include <linux/cpuidle.h> | ||
12 | 13 | ||
13 | #include <asm/elf.h> | 14 | #include <asm/elf.h> |
14 | #include <asm/vdso.h> | 15 | #include <asm/vdso.h> |
@@ -426,7 +427,7 @@ void __init xen_arch_setup(void) | |||
426 | #ifdef CONFIG_X86_32 | 427 | #ifdef CONFIG_X86_32 |
427 | boot_cpu_data.hlt_works_ok = 1; | 428 | boot_cpu_data.hlt_works_ok = 1; |
428 | #endif | 429 | #endif |
429 | pm_idle = default_idle; | 430 | disable_cpuidle(); |
430 | boot_option_idle_override = IDLE_HALT; | 431 | boot_option_idle_override = IDLE_HALT; |
431 | 432 | ||
432 | fiddle_vdso(); | 433 | fiddle_vdso(); |