summaryrefslogtreecommitdiff
path: root/thermalCommon.cpp
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2023-04-18 11:26:47 -0700
committerLinux Build Service Account <lnxbuild@localhost>2023-04-18 11:26:47 -0700
commit95d1dfd83f74daa82c28f8c49152a5ce6070c10c (patch)
treece498eadd44fb33ee5f3d35569eea2b23042f50e /thermalCommon.cpp
parentea340780ad532370bbe422915351f9b4d3aa7239 (diff)
parent39ff74035adc9fe28715e7000e7fe48e8e2b5fe4 (diff)
Merge 39ff74035adc9fe28715e7000e7fe48e8e2b5fe4 on remote branch
Change-Id: Ie6132b14675be591fe288d74664440611d1024ac
Diffstat (limited to 'thermalCommon.cpp')
-rw-r--r--thermalCommon.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/thermalCommon.cpp b/thermalCommon.cpp
index 02c14e1..9c9d632 100644
--- a/thermalCommon.cpp
+++ b/thermalCommon.cpp
@@ -107,6 +107,7 @@ static std::unordered_map<std::string, cdevType> cdev_map = {
{"cdsp", cdevType::NPU},
{"cdsp_hw", cdevType::NPU},
{"battery", cdevType::BATTERY},
+ {"fan-max31760", cdevType::FAN},
};
ThermalCommon::ThermalCommon()
@@ -644,10 +645,10 @@ int ThermalCommon::get_cpu_usages(hidl_vec<CpuUsage>& list) {
}
fclose(cpu_file);
- list[cpu_num].name = std::string("CPU") + std::to_string(cpu_num);
- list[cpu_num].active = active;
- list[cpu_num].total = total;
- list[cpu_num].isOnline = online;
+ list[cpu].name = std::string("CPU") + std::to_string(cpu_num);
+ list[cpu].active = active;
+ list[cpu].total = total;
+ list[cpu].isOnline = online;
cpu++;
}
fclose(file);