Skip to contentSkip to conversation

eal/ppc: add ppc specific TSC frequency value

PATCH Applied David Christensen 2 participants 2 messages Feb 3, 2021 – Mar 3, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 eal/ppc: add ppc specific TSC frequency value

Return a PPC specific value for get_tsc_freq_arch() rather than depending on the EAL framework to estimate the frequency.

---
 lib/librte_eal/ppc/rte_cycles.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
lib/librte_eal/ppc/rte_cycles.c +2 -1
index c96a2143b..9359ac50b 100644
@@ -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();
 }
Signature · 1 line
2.27.0
#1 lore raw
Quoted 5 lines · David Christensen

Return a PPC specific value for get_tsc_freq_arch() rather than depending on the EAL framework to estimate the frequency.

Applied, thanks.

Signature · 1 line
David Marchand