commit | f1b6bccf08f53295b2f7f448f28bbd37533c14a2 | [log] [tgz] |
---|---|---|
author | Zhang Le <r0bertz@gentoo.org> | Sun Jul 18 02:05:28 2010 +0800 |
committer | Dominik Brodowski <linux@dominikbrodowski.net> | Wed Jul 21 14:00:18 2010 +0200 |
tree | b74db0cbd01cead324f68f5b7b284d5c996de720 | |
parent | 2ba0b96dca320fbc9bcab47ff4ab1a8a97fb485e [diff] |
Only x86 has cpuid instruction Signed-off-by: Zhang Le <r0bertz@gentoo.org> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
diff --git a/utils/aperf.c b/utils/aperf.c index 627fb17..1c64501 100644 --- a/utils/aperf.c +++ b/utils/aperf.c
@@ -68,11 +68,15 @@ static int cpu_has_effective_freq() { +#if defined(__i386__) || defined(__x86_64__) /* largest base level */ if (cpuid_eax(0) < 6) return 0; return cpuid_ecx(6) & 0x1; +#else + return 0; +#endif } /*