blob: ee10c40ac14208eb230d9760bd32c8d2bbb914eb [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001From 4d1368d20f04216aec9551d9845b305f96a21015 Mon Sep 17 00:00:00 2001
2From: Stephan Raue <stephan@openelec.tv>
3Date: Mon, 1 Sep 2014 03:16:37 +0200
4Subject: [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
11diff --git a/xbmc/utils/CPUInfo.cpp b/xbmc/utils/CPUInfo.cpp
12index 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--
252.10.2
26