eal/ppc: provide arch-specific TSC frequency
authorDavid Christensen <drc@linux.vnet.ibm.com>
Wed, 3 Feb 2021 21:54:13 +0000 (13:54 -0800)
committerDavid 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

index c96a214..3180adb 100644 (file)
@@ -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();
 }