From: Chris Metcalf Date: Sat, 18 Feb 2017 01:52:26 +0000 (-0500) Subject: eal/tile: avoid use of non-upstreamed header X-Git-Tag: spdx-start~4454 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=f80468b680a22659b67aff40c462695956b15d20;p=dpdk.git eal/tile: avoid use of non-upstreamed header It's trivial to directly invoke a read of the special-purpose register that holds the clock cycle counter, so just do that. Signed-off-by: Chris Metcalf --- diff --git a/lib/librte_eal/common/include/arch/tile/rte_cycles.h b/lib/librte_eal/common/include/arch/tile/rte_cycles.h index 0b2200a3ea..a87b2f84a2 100644 --- a/lib/librte_eal/common/include/arch/tile/rte_cycles.h +++ b/lib/librte_eal/common/include/arch/tile/rte_cycles.h @@ -37,7 +37,7 @@ extern "C" { #endif -#include +#include #include "generic/rte_cycles.h" @@ -50,7 +50,7 @@ extern "C" { static inline uint64_t rte_rdtsc(void) { - return get_cycle_count(); + return __insn_mfspr(SPR_CYCLE); } static inline uint64_t