From f80468b680a22659b67aff40c462695956b15d20 Mon Sep 17 00:00:00 2001 From: Chris Metcalf Date: Fri, 17 Feb 2017 20:52:26 -0500 Subject: [PATCH] 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 --- lib/librte_eal/common/include/arch/tile/rte_cycles.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.20.1