mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
UPSTREAM: libpayload: timer: cast cpu_khz to make sure 64bit math is used
Change-Id: Iaf84de2330b433076a66c22fa72ffb45e957c0dc Original-Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Found-by: Coverity Scan #1261177 Original-Reviewed-on: https://review.coreboot.org/18034 Original-Tested-by: build bot (Jenkins) Original-Reviewed-by: Martin Roth <martinroth@google.com> Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/425984 Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
This commit is contained in:
parent
c1e1da8f10
commit
b4e7e4c8eb
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@
|
|||
|
||||
uint64_t timer_hz(void)
|
||||
{
|
||||
return lib_sysinfo.cpu_khz * 1000;
|
||||
return (uint64_t)lib_sysinfo.cpu_khz * 1000;
|
||||
}
|
||||
|
||||
uint64_t timer_raw_value(void)
|
||||
|
|
Loading…
Add table
Reference in a new issue