diff options
Diffstat (limited to 'payloads/libpayload/libc')
-rw-r--r-- | payloads/libpayload/libc/time.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/payloads/libpayload/libc/time.c b/payloads/libpayload/libc/time.c index 28f2b3e2a9..64de80049c 100644 --- a/payloads/libpayload/libc/time.c +++ b/payloads/libpayload/libc/time.c @@ -171,14 +171,15 @@ void arch_ndelay(uint64_t ns) u64 timer_us(u64 base) { - static u32 hz, mult = USECS_PER_SEC; + static u64 hz; + static u32 mult = USECS_PER_SEC; u32 div; // Only check timer_hz once. Assume it doesn't change. if (hz == 0) { hz = timer_hz(); if (hz < mult) { - printf("Timer frequency %" PRIu32 " is too low, " + printf("Timer frequency %" PRIu64 " is too low, " "must be at least 1MHz.\n", hz); halt(); } |