From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id DB5E22B9E for ; Sat, 18 Feb 2017 02:52:58 +0100 (CET) Received: from Internal Mail-Server by MTLPINE1 (envelope-from cmetcalf@mellanox.com) with ESMTPS (AES256-SHA encrypted); 18 Feb 2017 03:52:52 +0200 Received: from ld-1.internal.tilera.com (ld-1.internal.tilera.com [10.15.7.41]) by mtbu-labmail01.internal.tilera.com (8.14.4/8.14.4) with ESMTP id v1I1qpXU028005; Fri, 17 Feb 2017 20:52:51 -0500 Received: (from cmetcalf@localhost) by ld-1.internal.tilera.com (8.14.4/8.14.4/Submit) id v1I1qpBJ009959; Fri, 17 Feb 2017 20:52:51 -0500 From: Chris Metcalf To: Thomas Monjalon , Vincent JARDIN , Bruce Richardson , Jerin Jacob , Liming Sun , Olga Shern , Yael Shenhav , dev@dpdk.org Cc: Chris Metcalf Date: Fri, 17 Feb 2017 20:52:26 -0500 Message-Id: <1487382749-9887-2-git-send-email-cmetcalf@mellanox.com> X-Mailer: git-send-email 2.7.2 In-Reply-To: <1487382749-9887-1-git-send-email-cmetcalf@mellanox.com> References: <1487382749-9887-1-git-send-email-cmetcalf@mellanox.com> X-Mailman-Approved-At: Sat, 18 Feb 2017 12:06:58 +0100 Subject: [dpdk-dev] [PATCH 1/4] tile: avoid use of non-upstreamed X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Feb 2017 01:52:59 -0000 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 0b2200a3ea75..a87b2f84a21e 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.7.2