netstar pushed a commit to branch master.

http://git.enlightenment.org/apps/evisum.git/commit/?id=f6c75c6d93d7e6603dccf9321fa1b770988924a0

commit f6c75c6d93d7e6603dccf9321fa1b770988924a0
Author: Alastair Poole <[email protected]>
Date:   Thu Oct 15 15:09:16 2020 +0100

    cpu: add some support for known hw...
---
 src/bin/system/machine/cpu.bogox | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/src/bin/system/machine/cpu.bogox b/src/bin/system/machine/cpu.bogox
index d820810..b57719b 100644
--- a/src/bin/system/machine/cpu.bogox
+++ b/src/bin/system/machine/cpu.bogox
@@ -357,10 +357,17 @@ system_cpu_n_temperature_get(int n)
 #if defined(__linux__)
    static int init = 0;
 
+   // This list is not exhastive by any means, if you have the
+   // hardware and can provide a better init, please do. WIP.
+   // Min max (where applicable)
    thermal_drv drivers[] = {
-      { "coretemp", _coretemp_init, 0, 100 },
-      { "k10temp", _generic_init, 0, 100 },
-      { "cpu_thermal", _generic_init, 0, 100 },
+      { "coretemp", _coretemp_init, 0, 90 },    /* Intel Coretemp */
+      { "k10temp", _generic_init, 0, 90 },       /* AMD K10 */
+      { "cpu_thermal", _generic_init, 0, 90 },   /* BCM2835/BCM2711 (RPI3/4) */
+      { "cup", _generic_init, 0, 100 },          /* RK3399 */
+      { "soc_thermal", _generic_init, 0, 100 },  /* RK3326 */
+      { "cpu0_thermal", _generic_init, 0, 100 }, /* AllWinner A64 */
+      { "soc_dts0", _generic_init, 0, 90 },      /* Intel Baytrail */
    };
 
    if (!init)

-- 


Reply via email to