> -----Original Message-----
> From: Jerin Jacob [mailto:[email protected]]
> Sent: 2017年8月13日 15:04
> To: [email protected]
> Cc: [email protected]; [email protected];
> [email protected]; [email protected];
> [email protected]; [email protected]; Jerin Jacob
> <[email protected]>
> Subject: [dpdk-dev] [PATCH 2/5] eal/ppc64: define architecture specific
rdtsc hz
> 
> CC: Chao Zhu <[email protected]>
> Signed-off-by: Jerin Jacob <[email protected]>
> ---
>  lib/librte_eal/common/include/arch/ppc_64/rte_cycles.h | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
> 
> diff --git a/lib/librte_eal/common/include/arch/ppc_64/rte_cycles.h
> b/lib/librte_eal/common/include/arch/ppc_64/rte_cycles.h
> index 8fa6fc60b..20243fb29 100644
> --- a/lib/librte_eal/common/include/arch/ppc_64/rte_cycles.h
> +++ b/lib/librte_eal/common/include/arch/ppc_64/rte_cycles.h
> @@ -79,6 +79,19 @@ rte_rdtsc(void)
>       return tsc.tsc_64;
>  }
> 
> +/**
> + * Get the number of rdtsc cycles in one second if the architecture
supports.
> + *
> + * @return
> + *   The number of rdtsc cycles in one second. Return zero if the
architecture
> + *   support is not available.
> + */
> +static inline uint64_t
> +rte_rdtsc_arch_hz(void)
> +{
> +     return 0;
> +}
> +
>  static inline uint64_t
>  rte_rdtsc_precise(void)
>  {
> --
> 2.14.0
Acked-by: Chao Zhu <[email protected]>


Reply via email to