[dpdk-dev] [PATCH v2 3/6] eal/arm: add 64-bit armv8 version of rte_cycles.h

Jan Viktorin viktorin at rehivetech.com
Fri Oct 30 13:44:56 CET 2015


On Fri, 30 Oct 2015 11:51:23 +0000
David Hunt <david.hunt at intel.com> 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

> +	return tsc;
> +#endif
> +
> +}
> +


-- 
   Jan Viktorin                  E-mail: Viktorin at RehiveTech.com
   System Architect              Web:    www.RehiveTech.com
   RehiveTech
   Brno, Czech Republic


More information about the dev mailing list