diff options
author | Elsie Shih <elsie_shih@wistron.corp-partner.google.com> | 2022-10-04 17:23:46 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-10-07 04:46:08 +0000 |
commit | b0b0d0b4136d4c6b10256dac9c2c240d69840938 (patch) | |
tree | c51ff8323d1a0ffcffacbbe5f5035cca53094895 | |
parent | 15d4b60534d2a0493e39c486270117a313af79d7 (diff) | |
download | chrome-ec-b0b0d0b4136d4c6b10256dac9c2c240d69840938.tar.gz |
crota: modify fan actual RPM log
Modify fan actual RPM log for recording actual RPM every 2 minutes.
Deadline won't update in S0ix, so get the current time to avoid
recording actual RPM every second.
BUG=b:251019895
BRANCH=none
TEST=make BOARD=crota
Signed-off-by: Elsie Shih <elsie_shih@wistron.corp-partner.google.com>
Change-Id: Id3332a705bcd0a274848a86d36848163c3eefc6e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3928458
Reviewed-by: caveh jalali <caveh@chromium.org>
-rw-r--r-- | board/crota/fans.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/crota/fans.c b/board/crota/fans.c index d38b82e44f..f1360a3ea8 100644 --- a/board/crota/fans.c +++ b/board/crota/fans.c @@ -107,7 +107,7 @@ static void fan_get_rpm(int fan) /* Record actual RPM every 2 minutes. */ if (timestamp_expired(deadline, NULL)) { ccprints("fan actual rpm: %d", fan_get_rpm_actual(FAN_CH(fan))); - deadline.val += RECORD_TIME; + deadline.val = get_time().val + RECORD_TIME; } } |