Skip to contentSkip to conversation

xenpm: Fix ia64 build

PATCH New KUWAMURA Shin'ya 1 participant 1 message Feb 9, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xenpm: Fix ia64 build

Hi,

This patch fixes a compilation error on ia64.

cpuid_eax() is x86-specific.

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.

xen/drivers/cpufreq/cpufreq_ondemand.c +2 -0
diff -r 5b895c3f4386 -r 5e6c029726ce xen/drivers/cpufreq/cpufreq_ondemand.c
@@ -345,11 +345,13 @@ struct cpufreq_governor cpufreq_gov_dbs 
 
 static 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