eal/ppc: add ppc specific TSC frequency value
Checks
Commit Message
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 | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Comments
On Wed, Feb 3, 2021 at 10:54 PM David Christensen
<drc@linux.vnet.ibm.com> wrote:
>
> 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>
Applied, thanks.
@@ -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();
}