From d522f38c7bfccdc4af71bcad133aec20096f3f6c Mon Sep 17 00:00:00 2001 From: Rob Barnes Date: Mon, 12 Sep 2022 06:31:47 -0600 Subject: timer: Change timer util functions to 64-bit Since mono_time is now 64-bit, the utility functions interfacing with mono_time should also be 64-bit so precision isn't lost. Fixed build errors related to printing the now int64_t result of stopwatch_duration_[m|u]secs in various places. BUG=b:237082996 BRANCH=All TEST=Boot dewatt Change-Id: I169588f5e14285557f2d03270f58f4c07c0154d5 Signed-off-by: Rob Barnes Reviewed-on: https://review.coreboot.org/c/coreboot/+/66170 Tested-by: build bot (Jenkins) Reviewed-by: Werner Zeh Reviewed-by: Raul Rangel Reviewed-by: Yu-Ping Wu --- src/security/vboot/ec_sync.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/security/vboot/ec_sync.c') diff --git a/src/security/vboot/ec_sync.c b/src/security/vboot/ec_sync.c index 56e6c44d60..5b3287ed13 100644 --- a/src/security/vboot/ec_sync.c +++ b/src/security/vboot/ec_sync.c @@ -174,7 +174,7 @@ static vb2_error_t ec_hash_image(enum vb2_firmware_selection select, return VB2_ERROR_UNKNOWN; } - printk(BIOS_INFO, "EC took %luus to calculate image hash\n", + printk(BIOS_INFO, "EC took %lldus to calculate image hash\n", stopwatch_duration_usecs(&sw)); *hash = resp.hash_digest; @@ -460,7 +460,7 @@ vb2_error_t vb2ex_ec_vboot_done(struct vb2_context *ctx) "EC requests limited power usage. Request shutdown.\n"); return VB2_REQUEST_SHUTDOWN; } else { - printk(BIOS_INFO, "Waited %luus to clear limit power flag.\n", + printk(BIOS_INFO, "Waited %lldus to clear limit power flag.\n", stopwatch_duration_usecs(&sw)); } @@ -541,7 +541,7 @@ vb2_error_t vb2ex_ec_jump_to_rw(void) mdelay(50); while (google_chromeec_hello()) { if (stopwatch_expired(&sw)) { - printk(BIOS_ERR, "EC did not return from reboot after %luus\n", + printk(BIOS_ERR, "EC did not return from reboot after %lldus\n", stopwatch_duration_usecs(&sw)); return VB2_ERROR_UNKNOWN; } @@ -549,7 +549,7 @@ vb2_error_t vb2ex_ec_jump_to_rw(void) mdelay(5); } - printk(BIOS_INFO, "\nEC returned from reboot after %luus\n", + printk(BIOS_INFO, "\nEC returned from reboot after %lldus\n", stopwatch_duration_usecs(&sw)); return VB2_SUCCESS; -- cgit v1.2.3