From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 9C4768E7B for ; Fri, 30 Oct 2015 14:18:38 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP; 30 Oct 2015 06:18:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,218,1444719600"; d="scan'208";a="823136451" Received: from dhunt5x-mobl3.ger.corp.intel.com (HELO [10.237.208.62]) ([10.237.208.62]) by fmsmga001.fm.intel.com with ESMTP; 30 Oct 2015 06:18:17 -0700 To: Jan Viktorin References: <1446205886-23823-1-git-send-email-david.hunt@intel.com> <1446205886-23823-4-git-send-email-david.hunt@intel.com> <20151030134456.4bedfb2e@pcviktorin.fit.vutbr.cz> From: "Hunt, David" Message-ID: <56336E19.2020004@intel.com> Date: Fri, 30 Oct 2015 13:18:17 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151030134456.4bedfb2e@pcviktorin.fit.vutbr.cz> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v2 3/6] eal/arm: add 64-bit armv8 version of rte_cycles.h X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Oct 2015 13:18:39 -0000 On 30/10/2015 12:44, Jan Viktorin wrote: > On Fri, 30 Oct 2015 11:51:23 +0000 > David Hunt wrote: > >> +static inline uint64_t >> +rte_rdtsc(void) >> +{ >> + uint64_t tsc; >> + >> + asm volatile("mrs %0, CNTVCT_EL0" : "=r" (tsc)); >> + >> +#ifdef RTE_TIMER_MULTIPLIER >> + return tsc * RTE_TIMER_MULTIPLIER; >> +#else > > I think, this should be CONFIG_RTE_TIMER_MULTIPLIER. > > Jan Jan, Thanks for the super-fast review :) I've taken a look at this and RTE_TIMER_MULTIPLIER is present in the generated include/rte_config.h, so it compiles and run fine. I've also confirmed this by removing the #ifdef, forcing the use of RTE_TIMER_MULTIPLIER as a test. Dave.