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:
Vic Yang
2012-04-26 11:37:53 +08:00
parent 470916fb0f
commit 8b1dd41d77

View File

@@ -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];