[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] xenpm: Fix ia64 build



Hi,

This patch fixes a compilation error on ia64.

cpuid_eax() is x86-specific.

Signed-off-by: KUWAMURA Shin'ya <kuwa@xxxxxxxxxxxxxx>
-- 
  KUWAMURA Shin'ya
# HG changeset patch
# User KUWAMURA Shin'ya <kuwa@xxxxxxxxxxxxxx>
# Date 1265700843 -32400
# Node ID 5e6c029726ce81ec60ce3c75e04fa590b364d421
# Parent  5b895c3f4386fc551bcfa3688d255af6561165f9
xenpm: Fix ia64 build

cpuid_eax() is x86-specific.

Signed-off-by: KUWAMURA Shin'ya <kuwa@xxxxxxxxxxxxxx>

diff -r 5b895c3f4386 -r 5e6c029726ce xen/drivers/cpufreq/cpufreq_ondemand.c
--- a/xen/drivers/cpufreq/cpufreq_ondemand.c    Mon Feb 08 10:18:51 2010 +0000
+++ b/xen/drivers/cpufreq/cpufreq_ondemand.c    Tue Feb 09 16:34:03 2010 +0900
@@ -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
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.