summaryrefslogtreecommitdiff
path: root/extra/cpufrequtils/cpufrequtils-mips.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extra/cpufrequtils/cpufrequtils-mips.patch')
-rw-r--r--extra/cpufrequtils/cpufrequtils-mips.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/extra/cpufrequtils/cpufrequtils-mips.patch b/extra/cpufrequtils/cpufrequtils-mips.patch
new file mode 100644
index 000000000..cba8ab48b
--- /dev/null
+++ b/extra/cpufrequtils/cpufrequtils-mips.patch
@@ -0,0 +1,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
+ }
+
+ /*