mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
xbmc: add patch to support PSTATE driver
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
da7968e7cb
commit
f63c630b0d
@ -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;
|
Loading…
x
Reference in New Issue
Block a user