1
0

patch-utils_aperf_c 411 B

123456789101112131415161718
  1. --- cpufrequtils-008.orig/utils/aperf.c 2010-07-05 17:43:17.000000000 +0200
  2. +++ cpufrequtils-008/utils/aperf.c 2010-08-01 22:41:37.905732041 +0200
  3. @@ -68,11 +68,15 @@ struct avg_perf_cpu_info
  4. static int cpu_has_effective_freq()
  5. {
  6. +#if defined(__i386__) || defined(__x86_64__)
  7. /* largest base level */
  8. if (cpuid_eax(0) < 6)
  9. return 0;
  10. return cpuid_ecx(6) & 0x1;
  11. +#else
  12. + return 0;
  13. +#endif
  14. }
  15. /*