AArch64: Fix HP_TIMING_DIFF computation [BZ# 29329]
authorJun Tang <juntangc@amazon.com>
Wed, 22 Feb 2023 16:45:59 +0000 (16:45 +0000)
committerWilco Dijkstra <wilco.dijkstra@arm.com>
Wed, 22 Feb 2023 16:45:59 +0000 (16:45 +0000)
commit311a7e0256975275d97077f1af338bc9caf0c837
treec844afe92c022f1e50e2c1052233cb72ae0d0b94
parent8b014a1b1f7aee1e3348db108aeea396359d481e
AArch64: Fix HP_TIMING_DIFF computation [BZ# 29329]

Fix the computation to allow for cntfrq_el0 being larger than 1GHz.
Assume cntfrq_el0 is a multiple of 1MHz to increase the maximum
interval (1024 seconds at 1GHz).

Reviewed-by: Wilco Dijkstra <Wilco.Dijkstra@arm.com>
sysdeps/aarch64/hp-timing.h