AArch64: Add hp-timing.h
commit6a34c928c2ac9fce926b1348d61dae34262e3f77
authorWilco Dijkstra <wilco.dijkstra@arm.com>
Thu, 1 Jul 2021 14:42:05 +0000 (1 15:42 +0100)
committerWilco Dijkstra <wdijkstr@arm.com>
Thu, 1 Jul 2021 14:42:05 +0000 (1 15:42 +0100)
treebc0f927f7d6191b3338d59cc69a64291db993de4
parent252cad02d4c63540501b9b8c988cb91248563224
AArch64: Add hp-timing.h

Add hp-timing.h using the cntvct_el0 counter. Return timing in nanoseconds
so it is fully compatible with generic hp-timing. Don't set HP_TIMING_INLINE
in the dynamic linker since it adds unnecessary overheads and some ancient
kernels may not handle emulating cntcvt correctly. Currently cntvct_el0 is
only used for timing in the benchtests.

Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
sysdeps/aarch64/hp-timing.h [new file with mode: 0644]