diff options
author | Ram Chandrasekar <rkumbako@codeaurora.org> | 2021-04-06 13:25:32 -0700 |
---|---|---|
committer | Ram Chandrasekar <rkumbako@codeaurora.org> | 2021-04-26 15:51:02 -0700 |
commit | 14a48f515dc2ceb54a365de5d51d5bd4a0466630 (patch) | |
tree | 333c1adf54cb75cb18274206b2f7e14d87f02924 /thermalCommon.cpp | |
parent | 3b3723bc8e87f4d773a81c48e33165109cde7bbf (diff) |
thermal-hal: Add support for new thermal HAl v2 binary
Add support for new thermal HAL v2 binary, which can listen to the thermal
framework netlink messages instead of the uevents sent by the userspace
governor. This new binary should be selected only for the kernel version
supporting the new netlink messages in thermal framework.
Change-Id: I31cdb93fb73d59ff3eb94eb76d6e42b3448c3ee9
Diffstat (limited to 'thermalCommon.cpp')
-rw-r--r-- | thermalCommon.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/thermalCommon.cpp b/thermalCommon.cpp index 2870a7a..2bcf929 100644 --- a/thermalCommon.cpp +++ b/thermalCommon.cpp @@ -474,6 +474,7 @@ void ThermalCommon::initThreshold(struct therm_sensor& sensor) sensor.t.name; return; } +#ifndef ENABLE_THERMAL_NETLINK snprintf(file_name, sizeof(file_name), POLICY_FILE_FORMAT, sensor.tzn); ret = readLineFromFile(std::string(file_name), buf); @@ -487,7 +488,7 @@ void ThermalCommon::initThreshold(struct therm_sensor& sensor) sensor.t.name << std::endl; return; } - +#endif next_trip = UNKNOWN_TEMPERATURE; for (idx = 0;idx <= (int)ThrottlingSeverity::SHUTDOWN; idx++) { if (isnan(sensor.thresh.hotThrottlingThresholds[idx]) |