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

[Xen-changelog] [xen-unstable] xenpm: Fix ia64 build



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1265792819 0
# Node ID 6dd69b92d13149dd78603d0cfc8395c3ededd81b
# Parent  5b895c3f4386fc551bcfa3688d255af6561165f9
xenpm: Fix ia64 build

cpuid_eax() is x86-specific.

Signed-off-by: KUWAMURA Shin'ya <kuwa@xxxxxxxxxxxxxx>
---
 xen/drivers/cpufreq/cpufreq_ondemand.c |    2 ++
 1 files changed, 2 insertions(+)

diff -r 5b895c3f4386 -r 6dd69b92d131 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    Wed Feb 10 09:06:59 2010 +0000
@@ -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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

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