DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] eal/ppc: add ppc specific TSC frequency value
@ 2021-02-03 21:54 David Christensen
  2021-03-03  8:36 ` David Marchand
  0 siblings, 1 reply; 2+ messages in thread
From: David Christensen @ 2021-02-03 21:54 UTC (permalink / raw)
  To: dev; +Cc: David Christensen

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] [PATCH] eal/ppc: add ppc specific TSC frequency value
  2021-02-03 21:54 [dpdk-dev] [PATCH] eal/ppc: add ppc specific TSC frequency value David Christensen
@ 2021-03-03  8:36 ` David Marchand
  0 siblings, 0 replies; 2+ messages in thread
From: David Marchand @ 2021-03-03  8:36 UTC (permalink / raw)
  To: David Christensen; +Cc: dev

On Wed, Feb 3, 2021 at 10:54 PM David Christensen
<drc@linux.vnet.ibm.com> wrote:
>
> 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>

Applied, thanks.


-- 
David Marchand


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-03-03  8:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-03 21:54 [dpdk-dev] [PATCH] eal/ppc: add ppc specific TSC frequency value David Christensen
2021-03-03  8:36 ` David Marchand

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).