summaryrefslogtreecommitdiff
path: root/package/cpufrequtils/patches/patch-utils_aperf_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-08-05 22:49:12 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-08-05 22:49:12 +0200
commita2e96ddb9519a2f40857f11501b88e465d25082d (patch)
tree10defcae7e5d0452ca35d7d43e8fac59f5038064 /package/cpufrequtils/patches/patch-utils_aperf_c
parentdd48d0019b7f5442cef387b5754a276b33f8e52f (diff)
parent91024313d470314ecd49ecc0a9cdd80573b24139 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/cpufrequtils/patches/patch-utils_aperf_c')
-rw-r--r--package/cpufrequtils/patches/patch-utils_aperf_c18
1 files changed, 18 insertions, 0 deletions
diff --git a/package/cpufrequtils/patches/patch-utils_aperf_c b/package/cpufrequtils/patches/patch-utils_aperf_c
new file mode 100644
index 000000000..3e39dd625
--- /dev/null
+++ b/package/cpufrequtils/patches/patch-utils_aperf_c
@@ -0,0 +1,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
+ }
+
+ /*