xbmc: add patch to support PSTATE driver

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2014-08-29 23:52:37 +02:00
parent 5d07c724f4
commit 4e21690282

View File

@ -0,0 +1,13 @@
diff -Naur xbmc-14-a29b21a/xbmc/utils/CPUInfo.cpp xbmc-14-a29b21a.patch/xbmc/utils/CPUInfo.cpp
--- xbmc-14-a29b21a/xbmc/utils/CPUInfo.cpp 2014-08-24 17:41:38.000000000 +0200
+++ xbmc-14-a29b21a.patch/xbmc/utils/CPUInfo.cpp 2014-08-29 23:32:55.958602554 +0200
@@ -266,7 +266,8 @@
m_fProcTemperature = fopen("/sys/class/thermal/thermal_zone0/temp", "r"); // On Raspberry PIs
m_fCPUFreq = fopen ("/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq", "r");
-
+ if (m_fCPUFreq == NULL)
+ m_fCPUFreq = fopen ("/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq", "r");
FILE* fCPUInfo = fopen("/proc/cpuinfo", "r");
m_cpuCount = 0;