eal/arm: read timer from PMU if enabled
authorJan Viktorin <viktorin@rehivetech.com>
Mon, 2 Nov 2015 23:47:17 +0000 (00:47 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 18 Nov 2015 21:38:05 +0000 (22:38 +0100)
commit12f45fa7e29b79d87f46408b936f28690f33b3d8
treeeb2b979eeeb8e9416df749d126ca272bfb049c1c
parent87d33b6f64ebc3ea8576739421d4d8f70c0f2a31
eal/arm: read timer from PMU if enabled

Enable to choose a preferred way to read timer based on the
configuration entry CONFIG_RTE_ARM_EAL_RDTSC_USE_PMU.
It requires a kernel module that is not included to work.

Based on the patch by David Hunt and Armuta Zende:

  lib: added support for armv7 architecture

Signed-off-by: Jan Viktorin <viktorin@rehivetech.com>
Signed-off-by: Amruta Zende <amruta.zende@intel.com>
Signed-off-by: David Hunt <david.hunt@intel.com>
Acked-by: David Marchand <david.marchand@6wind.com>
lib/librte_eal/common/include/arch/arm/rte_cycles_32.h