]> git.ipfire.org Git - thirdparty/grub.git/commit
kern/riscv/efi/init: Use time register in grub_efi_get_time_ms()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 12 Aug 2024 14:13:18 +0000 (16:13 +0200)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 10 Oct 2024 10:13:37 +0000 (12:13 +0200)
commitc5ae124e11f28f637cbd38cb4d6c1b9817baa135
tree5bd3e7e6d01b9eea9682be5e0cd3271eb83e2b80
parent9c34d56c2dafcd2737db0e3e49df63bce4d8b504
kern/riscv/efi/init: Use time register in grub_efi_get_time_ms()

The cycle register is not guaranteed to count at constant frequency.
If it is counting at all depends on the state the performance monitoring
unit. Use the time register to measure time.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/kern/riscv/efi/init.c