debuggers.hg

changeset 20960:6dd69b92d131

xenpm: Fix ia64 build

cpuid_eax() is x86-specific.

Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Feb 10 09:06:59 2010 +0000 (2010-02-10)
parents 5b895c3f4386
children d28a351f0589
files xen/drivers/cpufreq/cpufreq_ondemand.c
line diff
     1.1 --- a/xen/drivers/cpufreq/cpufreq_ondemand.c	Mon Feb 08 10:18:51 2010 +0000
     1.2 +++ b/xen/drivers/cpufreq/cpufreq_ondemand.c	Wed Feb 10 09:06:59 2010 +0000
     1.3 @@ -345,11 +345,13 @@ struct cpufreq_governor cpufreq_gov_dbs 
     1.4  
     1.5  static int __init cpufreq_gov_dbs_init(void)
     1.6  {
     1.7 +#ifdef CONFIG_X86
     1.8      unsigned int eax = cpuid_eax(6);
     1.9      if ( eax & 0x2 ) {
    1.10          turbo_detected = 1;
    1.11          printk(XENLOG_INFO "Turbo Mode detected!\n");
    1.12      }
    1.13 +#endif
    1.14      return cpufreq_register_governor(&cpufreq_gov_dbs);
    1.15  }
    1.16  __initcall(cpufreq_gov_dbs_init);