git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfbc61a
)
eal/ppc: provide arch-specific TSC frequency
author
David Christensen
<drc@linux.vnet.ibm.com>
Wed, 3 Feb 2021 21:54:13 +0000
(13:54 -0800)
committer
David Marchand
<david.marchand@redhat.com>
Wed, 3 Mar 2021 09:05:23 +0000
(10:05 +0100)
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
patch
|
blob
|
history
diff --git
a/lib/librte_eal/ppc/rte_cycles.c
b/lib/librte_eal/ppc/rte_cycles.c
index
c96a214
..
3180adb
100644
(file)
--- a/
lib/librte_eal/ppc/rte_cycles.c
+++ b/
lib/librte_eal/ppc/rte_cycles.c
@@
-2,10
+2,12
@@
* 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()
;
}