Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 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 | --- |
| 8 | xbmc/utils/CPUInfo.cpp | 2 ++ |
| 9 | 1 file changed, 2 insertions(+) |
| 10 | |
| 11 | diff --git a/xbmc/utils/CPUInfo.cpp b/xbmc/utils/CPUInfo.cpp |
| 12 | index 5e2ebbd..fd04d5a 100644 |
| 13 | --- a/xbmc/utils/CPUInfo.cpp |
| 14 | +++ b/xbmc/utils/CPUInfo.cpp |
| 15 | @@ -274,6 +274,8 @@ CCPUInfo::CCPUInfo(void) |
| 16 | m_fProcTemperature = fopen("/sys/class/thermal/thermal_zone0/temp", "r"); // On Raspberry PIs |
| 17 | |
| 18 | m_fCPUFreq = fopen ("/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq", "r"); |
| 19 | + if (m_fCPUFreq == NULL) |
| 20 | + m_fCPUFreq = fopen ("/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq", "r"); |
| 21 | if (!m_fCPUFreq) |
| 22 | { |
| 23 | m_cpuInfoForFreq = true; |
| 24 | -- |
| 25 | 2.10.2 |
| 26 | |