From: David Christensen Date: Wed, 3 Feb 2021 21:54:13 +0000 (-0800) Subject: eal/ppc: provide arch-specific TSC frequency X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=44db5a5cf23f6157448fdb692efab605544762f3;p=dpdk.git eal/ppc: provide arch-specific TSC frequency 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 --- diff --git a/lib/librte_eal/ppc/rte_cycles.c b/lib/librte_eal/ppc/rte_cycles.c index c96a2143b3..3180adb0ff 100644 --- 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 + #include "eal_private.h" uint64_t get_tsc_freq_arch(void) { - return 0; + return __ppc_get_timebase_freq(); }