diff options
author | Dom Cobley <popcornmix@gmail.com> | 2023-09-01 12:13:20 +0100 |
---|---|---|
committer | Dom Cobley <popcornmix@gmail.com> | 2023-09-01 12:16:06 +0100 |
commit | 72c4b0983fb0d9156daffabd006931aa2b925cde (patch) | |
tree | fa67617de6875a1ab9ef59840fb6b744541b1366 | |
parent | efe703a063e10b8bbe0493c0c88b75805364c875 (diff) | |
download | xbmc-72c4b0983fb0d9156daffabd006931aa2b925cde.tar.xz |
CPUInfoLinux: Support cpu_thermal hwmon temperature module
On most ARM platforms, including Raspberry Pi the hwmon is named cpu_thermal:
LibreELEC:~ # cat /sys/class/hwmon/hwmon1/name
cpu_thermal
LibreELEC:~ # cat /sys/class/hwmon/hwmon1/temp1_input
42450
Also support that name.
-rw-r--r-- | xbmc/platform/linux/CPUInfoLinux.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xbmc/platform/linux/CPUInfoLinux.cpp b/xbmc/platform/linux/CPUInfoLinux.cpp index 79680fb52f..728480ca25 100644 --- a/xbmc/platform/linux/CPUInfoLinux.cpp +++ b/xbmc/platform/linux/CPUInfoLinux.cpp @@ -95,11 +95,12 @@ CCPUInfoLinux::CCPUInfoLinux() if (freqPath.Exists()) m_freqPath = freqStr; - const std::array<std::string, 4> modules = { + const std::array<std::string, 5> modules = { "coretemp", "k10temp", "scpi_sensors", "imx_thermal_zone", + "cpu_thermal", }; for (int i = 0; i < 20; i++) |