kodi: remove patch, p-state driver exposes scaling_cur_freq just fine

This commit is contained in:
Lukas Rusak 2017-01-14 01:49:01 -08:00
parent 142f146d1f
commit e27ae8f1d1
No known key found for this signature in database
GPG Key ID: 8C310C807E7393A3

View File

@ -1,26 +0,0 @@
From 993c50a689feee190557a98a34f76683cf46c589 Mon Sep 17 00:00:00 2001
From: Stephan Raue <stephan@openelec.tv>
Date: Mon, 1 Sep 2014 03:16:37 +0200
Subject: [PATCH 11/13] add support to read frequency output if using intel's
pstate driver
---
xbmc/utils/CPUInfo.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/xbmc/utils/CPUInfo.cpp b/xbmc/utils/CPUInfo.cpp
index 9e709e7..9b5279f 100644
--- a/xbmc/utils/CPUInfo.cpp
+++ b/xbmc/utils/CPUInfo.cpp
@@ -271,6 +271,8 @@ CCPUInfo::CCPUInfo(void)
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");
if (!m_fCPUFreq)
{
m_cpuInfoForFreq = true;
--
2.5.0