From 44db5a5cf23f6157448fdb692efab605544762f3 Mon Sep 17 00:00:00 2001 From: David Christensen Date: Wed, 3 Feb 2021 13:54:13 -0800 Subject: [PATCH] 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 --- lib/librte_eal/ppc/rte_cycles.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); } -- 2.20.1