eal/ppc64: implement arch-specific TSC freq query
authorJerin Jacob <jerin.jacob@caviumnetworks.com>
Fri, 22 Sep 2017 08:25:34 +0000 (13:55 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 13 Oct 2017 11:07:38 +0000 (13:07 +0200)
commit15692396fd68932b6a81f00f12d4b0da12baa7d3
tree08867806efb4ef32eabd9dbbddc2025f28f0d363
parent583152bc815fcfda1a667ed239211bf491c69a67
eal/ppc64: implement arch-specific TSC freq query

In ppc_64, rte_rdtsc() returns timebase register value which increments
at independent timebase frequency and hence not related to lcore cpu
frequency to derive TSC hz. Hence, we stick with master lcore frequency.

Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Gowrishankar Muthukrishnan <gowrishankar.m@linux.vnet.ibm.com>
lib/librte_eal/common/arch/ppc_64/rte_cycles.c