diff mbox series

eal/ppc: add ppc specific TSC frequency value

Message ID 20210203215413.396938-1-drc@linux.vnet.ibm.com (mailing list archive)
State Accepted
Delegated to: David Marchand
Headers show
Series eal/ppc: add ppc specific TSC frequency value | expand

Checks

Context Check Description
ci/travis-robot warning Travis build: failed
ci/iol-intel-Performance success Performance Testing PASS
ci/intel-Testing success Testing PASS
ci/Intel-compilation success Compilation OK
ci/iol-broadcom-Performance success Performance Testing PASS
ci/iol-broadcom-Functional success Functional Testing PASS
ci/checkpatch success coding style OK

Commit Message

David Christensen Feb. 3, 2021, 9:54 p.m. UTC
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(-)

Comments

David Marchand March 3, 2021, 8:36 a.m. UTC | #1
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.
diff mbox series

Patch

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();
 }