mirror of
https://github.com/JayDDee/cpuminer-opt.git
synced 2025-09-17 23:44:27 +00:00
v3.11.5
This commit is contained in:
17
sysinfos.c
17
sysinfos.c
@@ -41,7 +41,7 @@
|
||||
"/sys/devices/platform/coretemp.0/hwmon/hwmon1/temp1_input"
|
||||
|
||||
#define HWMON_PATH3 \
|
||||
"/sys/class/hwmon/hwmon0/temp1_input"
|
||||
"/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input"
|
||||
|
||||
#define HWMON_PATH \
|
||||
"/sys/class/hwmon/hwmon2/temp1_input"
|
||||
@@ -84,21 +84,6 @@ static inline float linux_cputemp(int core)
|
||||
if (!fd)
|
||||
fd = fopen(HWMON_PATH, "r");
|
||||
|
||||
if (!fd)
|
||||
// fd = fopen(HWMON_ALT1, "r");
|
||||
|
||||
// if (!fd)
|
||||
fd = fopen(HWMON_ALT2, "r");
|
||||
|
||||
if (!fd)
|
||||
fd = fopen(HWMON_ALT3, "r");
|
||||
|
||||
if (!fd)
|
||||
fd = fopen(HWMON_ALT4, "r");
|
||||
|
||||
if (!fd)
|
||||
fd = fopen(HWMON_ALT5, "r");
|
||||
|
||||
if (!fd)
|
||||
return tc;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user