eal/armv8: implement arch-specific TSC freq query
authorJerin Jacob <jerin.jacob@caviumnetworks.com>
Fri, 22 Sep 2017 08:25:36 +0000 (13:55 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 13 Oct 2017 11:07:23 +0000 (13:07 +0200)
commit583152bc815fcfda1a667ed239211bf491c69a67
treed125118a9630ff15a3e2265bff4d57d3eef202a8
parent3dbc565e81a06021966b8c08b1e1a45d462ad7fc
eal/armv8: implement arch-specific TSC freq query

Use cntvct_el0 system register to get the system counter frequency.

If the system is configured with RTE_ARM_EAL_RDTSC_USE_PMU then
return 0(let the common code calibrate the tsc frequency).

Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Acked-by: Jianbo Liu <jianbo.liu@linaro.org>
lib/librte_eal/common/arch/arm/rte_cycles.c