0005-add-support-to-read-frequency-output-if-using-intel-.patch 875 B

1234567891011121314151617181920212223242526
  1. From 4d1368d20f04216aec9551d9845b305f96a21015 Mon Sep 17 00:00:00 2001
  2. From: Stephan Raue <stephan@openelec.tv>
  3. Date: Mon, 1 Sep 2014 03:16:37 +0200
  4. Subject: [PATCH 05/10] add support to read frequency output if using intel's
  5. pstate driver
  6. ---
  7. xbmc/utils/CPUInfo.cpp | 2 ++
  8. 1 file changed, 2 insertions(+)
  9. diff --git a/xbmc/utils/CPUInfo.cpp b/xbmc/utils/CPUInfo.cpp
  10. index 5e2ebbd..fd04d5a 100644
  11. --- a/xbmc/utils/CPUInfo.cpp
  12. +++ b/xbmc/utils/CPUInfo.cpp
  13. @@ -274,6 +274,8 @@ CCPUInfo::CCPUInfo(void)
  14. m_fProcTemperature = fopen("/sys/class/thermal/thermal_zone0/temp", "r"); // On Raspberry PIs
  15. m_fCPUFreq = fopen ("/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq", "r");
  16. + if (m_fCPUFreq == NULL)
  17. + m_fCPUFreq = fopen ("/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq", "r");
  18. if (!m_fCPUFreq)
  19. {
  20. m_cpuInfoForFreq = true;
  21. --
  22. 2.10.2