Update temp limits in thermal HAL impl.
Bug: 27549685
Change-Id: I280610bbfda7d9fb65a7bc42831c4a545ea21757
diff --git a/include/hardware/thermal.h b/include/hardware/thermal.h
index 7fdf682..e7189e2 100644
--- a/include/hardware/thermal.h
+++ b/include/hardware/thermal.h
@@ -80,6 +80,13 @@
* If not available, set by HAL to UNKNOWN_TEMPERATURE.
*/
float shutdown_threshold;
+
+ /**
+ * Threshold temperature at which VR mode clockrate minumums cannot be
+ * maintained for this device temperature type.
+ * If not available, set by HAL to UNKNOWN_TEMPERATURE.
+ */
+ float vr_throttling_threshold;
} temperature_t;
typedef struct {
@@ -193,6 +200,7 @@
*/
ssize_t (*getCoolingDevices)(struct thermal_module *module, cooling_device_t *list,
size_t size);
+
} thermal_module_t;
__END_DECLS
diff --git a/modules/thermal/thermal.c b/modules/thermal/thermal.c
index c45d87a..6ba5845 100644
--- a/modules/thermal/thermal.c
+++ b/modules/thermal/thermal.c
@@ -72,6 +72,7 @@
.current_value = temp,
.throttling_threshold = UNKNOWN_TEMPERATURE,
.shutdown_threshold = UNKNOWN_TEMPERATURE,
+ .vr_throttling_threshold = UNKNOWN_TEMPERATURE,
};
}
fclose(file);