From: David Christensen <drc@linux.vnet.ibm.com>
To: dev@dpdk.org
Cc: David Christensen <drc@linux.vnet.ibm.com>
Subject: [dpdk-dev] [PATCH] eal/ppc: add ppc specific TSC frequency value
Date: Wed, 3 Feb 2021 13:54:13 -0800 [thread overview]
Message-ID: <20210203215413.396938-1-drc@linux.vnet.ibm.com> (raw)
Return a PPC specific value for get_tsc_freq_arch() rather than
depending on the EAL framework to estimate the frequency.
Signed-off-by: David Christensen <drc@linux.vnet.ibm.com>
---
lib/librte_eal/ppc/rte_cycles.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/librte_eal/ppc/rte_cycles.c b/lib/librte_eal/ppc/rte_cycles.c
index c96a2143b..9359ac50b 100644
--- a/lib/librte_eal/ppc/rte_cycles.c
+++ b/lib/librte_eal/ppc/rte_cycles.c
@@ -2,10 +2,11 @@
* Copyright (C) IBM Corporation 2019.
*/
+#include <sys/platform/ppc.h>
#include "eal_private.h"
uint64_t
get_tsc_freq_arch(void)
{
- return 0;
+ return __ppc_get_timebase_freq();
}
--
2.27.0
next reply other threads:[~2021-02-03 21:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-03 21:54 David Christensen [this message]
2021-03-03 8:36 ` David Marchand
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=20210203215413.396938-1-drc@linux.vnet.ibm.com \
--to=drc@linux.vnet.ibm.com \
--cc=dev@dpdk.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).