diff options
author | Scott Chao <scott_chao@wistron.corp-partner.google.com> | 2021-01-06 18:48:15 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-12 01:06:57 +0000 |
commit | 46e88f9bc3a819ec91f29db410d14e25dd9d4a68 (patch) | |
tree | a0eb8fda726dfa35e7aa5709a29096e1e32f4a8c | |
parent | c6061b464c125da2c5c7b2cdd4a3189453d41dea (diff) | |
download | chrome-ec-46e88f9bc3a819ec91f29db410d14e25dd9d4a68.tar.gz |
eldrid: fix customized thermal policy
Fix fan rpm won't change when DUT cool down.
Because current_level will equal to num_fan_levels when temperature reach to the highest level.
BUG=b:176875592
BRANCH=firmware-volteer-13672.B-main
TEST=make buildall
TEST=make sure fan will speed down when DUT cool down.
Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com>
Change-Id: I2e4c55e103674a35690ce2f9360a976afe624a2a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2612242
Reviewed-by: Keith Short <keithshort@chromium.org>
-rw-r--r-- | board/eldrid/thermal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/eldrid/thermal.c b/board/eldrid/thermal.c index 5534089b7f..35f4ac34a6 100644 --- a/board/eldrid/thermal.c +++ b/board/eldrid/thermal.c @@ -164,7 +164,7 @@ int fan_table_to_rpm(int fan, int *temp) for (i = current_level; i < num_fan_levels; i++) { if (temp[TEMP_SENSOR_3_DDR_SOC] > fan_table[i].on[TEMP_SENSOR_3_DDR_SOC]) - current_level = i + 1; + current_level = i; else break; } |