diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2019-06-13 14:38:10 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-06-14 22:58:26 +0000 |
commit | 96d36fbe1a838fd9571d32ed680bd0946c2d5f55 (patch) | |
tree | 7edc798dd1e72f0f9cf8a36253e113240c215bf7 /chip/ish | |
parent | f5838f96e4baf263891752fef86c9bf9d03a2907 (diff) | |
download | chrome-ec-96d36fbe1a838fd9571d32ed680bd0946c2d5f55.tar.gz |
ish: change log_pm_stat to accept uint32_t
The time values collected for t0 and t1 come from
__hw_clock_source_read, which produces uint32_t, not uint64_t. Fix
this so the wrap handles correctly.
BUG=b:132929262
BRANCH=none
TEST=made sure idlestats had sane values on arcada_ish
Change-Id: I7254da1bdd3ea32659dc590696bd5a9074aa30e1
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1658526
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'chip/ish')
-rw-r--r-- | chip/ish/power_mgt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/ish/power_mgt.c b/chip/ish/power_mgt.c index 2d63f49962..984495de87 100644 --- a/chip/ish/power_mgt.c +++ b/chip/ish/power_mgt.c @@ -76,7 +76,7 @@ static struct pm_statistics pm_stats; * t0: start time, in us * t1: end time, in us */ -static void log_pm_stat(struct pm_stat *stat, uint64_t t0, uint64_t t1) +static void log_pm_stat(struct pm_stat *stat, uint32_t t0, uint32_t t1) { stat->total_time_us += t1 - t0; stat->count++; |