xenpm: Fix ia64 build
PATCH 1/1 xenpm: Fix ia64 build
Hi,
This patch fixes a compilation error on ia64.
cpuid_eax() is x86-specific.
Signed-off-by KUWAMURA Shin'ya <[email protected]>
Signature · 1 line
KUWAMURA Shin'ya
# HG changeset patch
# User KUWAMURA Shin'ya <[email protected]> # Date 1265700843 -32400
# Node ID 5e6c029726ce81ec60ce3c75e04fa590b364d421 # Parent 5b895c3f4386fc551bcfa3688d255af6561165f9
xenpm: Fix ia64 build
cpuid_eax() is x86-specific.
Signed-off-by KUWAMURA Shin'ya <[email protected]>
xen/drivers/cpufreq/cpufreq_ondemand.c +2 -0
@@ -345,11 +345,13 @@ struct cpufreq_governor cpufreq_gov_dbsstatic int __init cpufreq_gov_dbs_init (void ) { +#ifdef CONFIG_X86 unsigned int eax =cpuid_eax (6 );if ( eax &0x2 ) { turbo_detected =1 ;printk (XENLOG_INFO "Turbo Mode detected!\n" ); } +#endif return cpufreq_register_governor (&cpufreq_gov_dbs); }__initcall (cpufreq_gov_dbs_init);
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel