mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-07 08:01:35 +00:00
Adjust thermal engine thresholds
Adjust fan step thresholds: T=55C Fan=20%/2200RPM T=65C Fan=40%/4400RPM T=75C Fan=60%/6600RPM T=85C Fan=80%/8800RPM T=95C Fan=100%/11000RPM Also set minimum fan speed to 0 rpm. Signed-off-by: Vic Yang <victoryang@chromium.org> BUG=chrome-os-partner:8466 TEST=Manual test Change-Id: I609853f2eceb9a6a43fbeb500084e82b1461f092
This commit is contained in:
@@ -30,7 +30,7 @@ extern const struct temp_sensor_t temp_sensors[TEMP_SENSOR_COUNT];
|
||||
static struct thermal_config_t thermal_config[TEMP_SENSOR_TYPE_COUNT] = {
|
||||
/* TEMP_SENSOR_TYPE_CPU */
|
||||
{THERMAL_CONFIG_WARNING_ON_FAIL,
|
||||
{343, 348, 353, 318, 323, 328, 333, 338}},
|
||||
{368, 383, 388, 328, 338, 348, 358, 368}},
|
||||
/* TEMP_SENSOR_TYPE_BOARD */
|
||||
{THERMAL_CONFIG_NO_FLAG, {THERMAL_THRESHOLD_DISABLE_ALL}},
|
||||
/* TEMP_SENSOR_TYPE_CASE */
|
||||
@@ -39,12 +39,9 @@ static struct thermal_config_t thermal_config[TEMP_SENSOR_TYPE_COUNT] = {
|
||||
};
|
||||
|
||||
/* Fan speed settings. */
|
||||
/* TODO: Currently temperature polling task sometimes hangs. So we should not
|
||||
* turn off fan according to temperature readings. Modify this to turn off fan
|
||||
* when we have reliable temperature readings. See crosbug.com/p/8479
|
||||
*/
|
||||
static const int fan_speed[THERMAL_FAN_STEPS + 1] = {4000, 5000, 6000, 7000,
|
||||
8000, -1};
|
||||
/* Max RPM is about 11000. Setting each step to be 20% of the max RPM. */
|
||||
static const int fan_speed[THERMAL_FAN_STEPS + 1] = {0, 2200, 4400, 6600,
|
||||
8800, -1};
|
||||
|
||||
/* Number of consecutive overheated events for each temperature sensor. */
|
||||
static int8_t ot_count[TEMP_SENSOR_COUNT][THRESHOLD_COUNT + THERMAL_FAN_STEPS];
|
||||
|
||||
Reference in New Issue
Block a user