From 4c26fe6c987e87d430a6b2087ea3b8756c881ebf Mon Sep 17 00:00:00 2001 From: Wei Wang Date: Fri, 31 Mar 2017 14:49:56 -0700 Subject: msm8996-common: thermalHAL: correct incorrect temperatures in thermal HAL Bug: 33277414 Test: marlin boots and logging thermal temperatures Change-Id: I114b397cfd140e92a90d41538890faa9a086207e --- thermal/thermal.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'thermal/thermal.c') 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; -- cgit v1.2.3