]> sourceware.org Git - glibc.git/commit
AArch64: Add hp-timing.h
authorWilco Dijkstra <wilco.dijkstra@arm.com>
Thu, 1 Jul 2021 14:42:05 +0000 (15:42 +0100)
committerWilco Dijkstra <wdijkstr@arm.com>
Thu, 1 Jul 2021 14:42:05 +0000 (15:42 +0100)
commit6a34c928c2ac9fce926b1348d61dae34262e3f77
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]
This page took 0.039243 seconds and 5 git commands to generate.