diff options
Diffstat (limited to 'payloads/libpayload/drivers/timer/rdtsc.c')
-rw-r--r-- | payloads/libpayload/drivers/timer/rdtsc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/payloads/libpayload/drivers/timer/rdtsc.c b/payloads/libpayload/drivers/timer/rdtsc.c index 952bc0bb13..d5bf1d2057 100644 --- a/payloads/libpayload/drivers/timer/rdtsc.c +++ b/payloads/libpayload/drivers/timer/rdtsc.c @@ -35,10 +35,9 @@ #include <arch/rdtsc.h> #include <assert.h> -uint32_t timer_hz(void) +uint64_t timer_hz(void) { - assert(UINT32_MAX / 1000 >= lib_sysinfo.cpu_khz); - return lib_sysinfo.cpu_khz * 1000; + return (uint64_t)lib_sysinfo.cpu_khz * 1000; } uint64_t timer_raw_value(void) |