From: "Chao Zhu" <chaozhu@linux.vnet.ibm.com>
To: "'Jerin Jacob'" <jerin.jacob@caviumnetworks.com>, <dev@dpdk.org>
Cc: <thomas@monjalon.net>, <bruce.richardson@intel.com>,
<konstantin.ananyev@intel.com>, <viktorin@rehivetech.com>,
<jianbo.liu@linaro.org>
Subject: Re: [PATCH 2/5] eal/ppc64: define architecture specific rdtsc hz
Date: Thu, 28 Sep 2017 09:53:40 +0800 [thread overview]
Message-ID: <000501d337fc$9d134b50$d739e1f0$@linux.vnet.ibm.com> (raw)
In-Reply-To: <20170813070350.13700-3-jerin.jacob@caviumnetworks.com>
> -----Original Message-----
> From: Jerin Jacob [mailto:jerin.jacob@caviumnetworks.com]
> Sent: 2017年8月13日 15:04
> To: dev@dpdk.org
> Cc: thomas@monjalon.net; bruce.richardson@intel.com;
> konstantin.ananyev@intel.com; viktorin@rehivetech.com;
> jianbo.liu@linaro.org; chaozhu@linux.vnet.ibm.com; Jerin Jacob
> <jerin.jacob@caviumnetworks.com>
> Subject: [dpdk-dev] [PATCH 2/5] eal/ppc64: define architecture specific
rdtsc hz
>
> CC: Chao Zhu <chaozhu@linux.vnet.ibm.com>
> Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
> ---
> 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 <chaozhu@linux.vnet.ibm.com>
next prev parent reply other threads:[~2017-09-28 1:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-13 7:03 [PATCH 0/5] improve tsc frequency calibration Jerin Jacob
2017-08-13 7:03 ` [PATCH 1/5] eal/x86: define architecture specific rdtsc hz Jerin Jacob
2017-09-18 12:54 ` Burakov, Anatoly
2017-08-13 7:03 ` [PATCH 2/5] eal/ppc64: " Jerin Jacob
2017-09-28 1:53 ` Chao Zhu [this message]
2017-08-13 7:03 ` [PATCH 3/5] eal/armv7: " Jerin Jacob
2017-08-13 7:03 ` [PATCH 4/5] eal/armv8: " Jerin Jacob
2017-08-15 3:35 ` Jianbo Liu
2017-08-13 7:03 ` [PATCH 5/5] eal/timer: honor architecture specific rdtsc hz function Jerin Jacob
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000501d337fc$9d134b50$d739e1f0$@linux.vnet.ibm.com' \
--to=chaozhu@linux.vnet.ibm.com \
--cc=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
--cc=jerin.jacob@caviumnetworks.com \
--cc=jianbo.liu@linaro.org \
--cc=konstantin.ananyev@intel.com \
--cc=thomas@monjalon.net \
--cc=viktorin@rehivetech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.