From: Konrad Rzeszutek Wilk Date: Wed, 14 Mar 2012 00:06:57 +0000 (-0400) Subject: xen/cpufreq: Disable the cpu frequency scaling drivers from loading. X-Git-Tag: v2.6.39-400.9.0~543^2~24 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=c9fbff1bc16967837069440fffa01f30a549e529;p=users%2Fjedix%2Flinux-maple.git xen/cpufreq: Disable the cpu frequency scaling drivers from loading. By using the functionality provided by "[CPUFREQ]: provide disable_cpuidle() function to disable the API." Under the Xen hypervisor we do not want the initial domain to exercise the cpufreq scaling drivers. This is b/c the Xen hypervisor is in charge of doing this as well and we can end up with both the Linux kernel and the hypervisor trying to change the P-states leading to weird performance issues. [upstream 48cdd82] Acked-by: Jan Beulich Signed-off-by: Konrad Rzeszutek Wilk [v2: Fix compile error spotted by Benjamin Schweikert ] --- diff --git a/arch/x86/xen/setup.c b/arch/x86/xen/setup.c index 1ac1eee42515c..701b464590ca6 100644 --- a/arch/x86/xen/setup.c +++ b/arch/x86/xen/setup.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include @@ -421,6 +422,7 @@ void __init xen_arch_setup(void) boot_cpu_data.hlt_works_ok = 1; #endif disable_cpuidle(); + disable_cpufreq(); WARN_ON(set_pm_idle_to_default()); fiddle_vdso(); }