diff options
author | Wei Wang <wvw@google.com> | 2017-03-31 14:49:56 -0700 |
---|---|---|
committer | Davide Garberi <dade.garberi@gmail.com> | 2022-08-16 12:21:37 +0200 |
commit | 4c26fe6c987e87d430a6b2087ea3b8756c881ebf (patch) | |
tree | 41b4bfc17289957f1d2a3dd724280b7594b74313 /thermal/thermal.c | |
parent | f5bc18e6b9fbd0e853dbfee3827ff9f0b6466cda (diff) |
msm8996-common: thermalHAL: correct incorrect temperatures in thermal HAL
Bug: 33277414
Test: marlin boots and logging thermal temperatures
Change-Id: I114b397cfd140e92a90d41538890faa9a086207e
Diffstat (limited to 'thermal/thermal.c')
-rw-r--r-- | thermal/thermal.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/thermal/thermal.c b/thermal/thermal.c index 9d2b8e7..f75a760 100644 --- a/thermal/thermal.c +++ b/thermal/thermal.c @@ -44,12 +44,12 @@ const int CPU_SENSORS[] = {4, 6, 9, 11}; //qcom, therm-reset-temp #define CPU_SHUTDOWN_THRESHOLD 115 -//qcom, limit-temp -#define CPU_THROTTLING_THRESHOLD 60 +//qcom,freq-mitigation-temp +#define CPU_THROTTLING_THRESHOLD 95 #define BATTERY_SHUTDOWN_THRESHOLD 60 // device/zuk/msm8996-common/configs/thermal-engine.conf #define SKIN_THROTTLING_THRESHOLD 47 -#define SKIN_SHUTDOWN_THRESHOLD 70 +#define SKIN_SHUTDOWN_THRESHOLD 65 #define VR_THROTTLED_BELOW_MIN 58 #define GPU_LABEL "GPU" @@ -114,7 +114,7 @@ static ssize_t get_cpu_temperatures(temperature_t *list, size_t size) { } // tsens_tz_sensor[4,6,9,11]: temperature in decidegrees Celsius. ssize_t result = read_temperature(CPU_SENSORS[cpu], DEVICE_TEMPERATURE_CPU, CPU_LABEL[cpu], - 0.1, CPU_THROTTLING_THRESHOLD, CPU_SHUTDOWN_THRESHOLD, UNKNOWN_TEMPERATURE, + 0.1, CPU_THROTTLING_THRESHOLD, CPU_SHUTDOWN_THRESHOLD, CPU_THROTTLING_THRESHOLD, &list[cpu]); if (result != 0) { return result; |