summaryrefslogtreecommitdiff
path: root/package/cpufrequtils/patches/patch-utils_aperf_c
blob: 3e39dd62555ae6133953ea9259f5eb6596a0db52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- cpufrequtils-008.orig/utils/aperf.c	2010-07-05 17:43:17.000000000 +0200
+++ cpufrequtils-008/utils/aperf.c	2010-08-01 22:41:37.905732041 +0200
@@ -68,11 +68,15 @@ struct avg_perf_cpu_info
 
 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
 }
 
 /*