eal/ppc64: use glibc for cpu cycles count
authorThinh Tran <thinhtr@linux.vnet.ibm.com>
Wed, 25 Mar 2020 00:13:56 +0000 (20:13 -0400)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 21 Apr 2020 16:12:20 +0000 (18:12 +0200)
commit56b27c4b36c676cc42ae1644e7487fbc902bf6a5
treefd446c790215f4fd43b99e0f0c4f02e52042185c
parent4a5a867844af0a73848dc3330ff2982601e37190
eal/ppc64: use glibc for cpu cycles count

__ppc_get_timebase() reads and returns the current value of the Time
Base Register. It's more efficient as it uses the processor’s time
base facility directly.

DPDK on FreeBSD currently is not supported on Powerpc64, it should
be safe to include the sys/platform/ppc.h.

Signed-off-by: Thinh Tran <thinhtr@linux.vnet.ibm.com>
Reviewed-by: David Christensen <drc@linux.vnet.ibm.com>
lib/librte_eal/ppc/include/rte_cycles.h