summaryrefslogtreecommitdiff
path: root/extra/cpufrequtils/cpufrequtils-mips.patch
blob: cba8ab48b9e67a06a96ed92306c02f84cc13f5a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- utils/aperf.c.orig	2010-07-18 01:38:02.000000000 +0800
+++ utils/aperf.c	2010-07-18 01:38:39.000000000 +0800
@@ -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
 }
 
 /*