Update temp limits in thermal HAL impl.

Bug: 27549685
Change-Id: I280610bbfda7d9fb65a7bc42831c4a545ea21757
This commit is contained in:
Ruben Brunk 2016-03-25 13:45:00 -07:00
parent f588e0b3b9
commit 53b134045f
2 changed files with 9 additions and 0 deletions

View file

@ -80,6 +80,13 @@ typedef struct {
* 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 @@ typedef struct thermal_module {
*/
ssize_t (*getCoolingDevices)(struct thermal_module *module, cooling_device_t *list,
size_t size);
} thermal_module_t;
__END_DECLS

View file

@ -72,6 +72,7 @@ static ssize_t get_temperatures(thermal_module_t *module, temperature_t *list, s
.current_value = temp,
.throttling_threshold = UNKNOWN_TEMPERATURE,
.shutdown_threshold = UNKNOWN_TEMPERATURE,
.vr_throttling_threshold = UNKNOWN_TEMPERATURE,
};
}
fclose(file);