diff options
author | Subrata Banik <subratabanik@google.com> | 2024-09-13 21:07:49 +0530 |
---|---|---|
committer | Subrata Banik <subratabanik@google.com> | 2024-09-14 18:13:47 +0000 |
commit | fa5e3d9d4474e50758ddf2287d26b164806c597c (patch) | |
tree | 332a5193bc7379f25c3b12866383c16b801e9da1 /util/msrtool/intel_pentium4_early.c | |
parent | 3d5412f8d4ad2cd3c873a46d8f6fb6a20c5f9ad6 (diff) |
ec/google/chromeec: Optimize battery string readout with caching
This commit refactors the long battery string implementation to include
caching of the EC response for battery information (model, serial, and
manufacturer).
This optimization reduces resume time by approximately 63ms by
minimizing communication overhead between the AP and EC.
BUG=b:366338622
TEST=Verified on google/tivviks_ufs:
* Long battery string is displayed when
EC_GOOGLE_CHROMEEC_READ_BATTERY_LONG_STRING is enabled.
* Short battery string is displayed when
EC_GOOGLE_CHROMEEC_READ_BATTERY_LONG_STRING=n.
Change-Id: I32ae5b5e618f20335f3d344811a97f1416df529e
Signed-off-by: Subrata Banik <subratabanik@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/84354
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Reviewed-by: Caveh Jalali <caveh@chromium.org>
Diffstat (limited to 'util/msrtool/intel_pentium4_early.c')
0 files changed, 0 insertions, 0 deletions