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 <robbarnes@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/66170 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Werner Zeh <werner.zeh@siemens.com> Reviewed-by: Raul Rangel <rrangel@chromium.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
This commit is contained in:
parent
51249d6bed
commit
d522f38c7b
25 changed files with 48 additions and 48 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue