From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id AEF16A0A0E; Wed, 3 Feb 2021 22:54:31 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7A58724048B; Wed, 3 Feb 2021 22:54:31 +0100 (CET) Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by mails.dpdk.org (Postfix) with ESMTP id B8E5F240486 for ; Wed, 3 Feb 2021 22:54:30 +0100 (CET) Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 113LVrmx095848 for ; Wed, 3 Feb 2021 16:54:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=j0MDvjHRGbcn+ZdhlBC5vNobdPeYffxWbzKzDcIzuk8=; b=A8GSAYa/plbldvQGeJ8NtIcJafwzKtKS4R1SpedPQZfpSjglAYLxuQPfyeDbyqcOFwzO CK9sYHA+Hn5R2apini+qh6dv2JCYxXqQUFwhYcygfv+hej6hNLXVpxcO8fJyJX32n1Cy T+dsoRTHLvHwNXjg1Mg5Yu/OwPHH7NlE0pvPgWd+uwxYAH5bsu7zzOZ4VzJmogFdmS0P a2Tox/TA+vJlYNgPkXWKIWO8DCDEcTfEG4uSj6tvwv+P4p2vMt1hW7AygTluyVfe54/F tfy/v1kBPbxoZ8pV7qjS9ihIsb2ZVStOsR2T9BUHuyVHtHlutv95jaXcP7yQdywb47fd lQ== Received: from ppma01wdc.us.ibm.com (fd.55.37a9.ip4.static.sl-reverse.com [169.55.85.253]) by mx0a-001b2d01.pphosted.com with ESMTP id 36g3hv17y6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 03 Feb 2021 16:54:29 -0500 Received: from pps.filterd (ppma01wdc.us.ibm.com [127.0.0.1]) by ppma01wdc.us.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 113LphXw018561 for ; Wed, 3 Feb 2021 21:54:28 GMT Received: from b01cxnp22034.gho.pok.ibm.com (b01cxnp22034.gho.pok.ibm.com [9.57.198.24]) by ppma01wdc.us.ibm.com with ESMTP id 36eyucwuej-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 03 Feb 2021 21:54:28 +0000 Received: from b01ledav006.gho.pok.ibm.com (b01ledav006.gho.pok.ibm.com [9.57.199.111]) by b01cxnp22034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 113LsSex29098462 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 3 Feb 2021 21:54:28 GMT Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 24C00AC05F; Wed, 3 Feb 2021 21:54:28 +0000 (GMT) Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0E9F0AC05E; Wed, 3 Feb 2021 21:54:28 +0000 (GMT) Received: from localhost.localdomain (unknown [9.114.224.51]) by b01ledav006.gho.pok.ibm.com (Postfix) with ESMTP; Wed, 3 Feb 2021 21:54:27 +0000 (GMT) From: David Christensen To: dev@dpdk.org Cc: David Christensen Date: Wed, 3 Feb 2021 13:54:13 -0800 Message-Id: <20210203215413.396938-1-drc@linux.vnet.ibm.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369, 18.0.737 definitions=2021-02-03_08:2021-02-03, 2021-02-03 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 bulkscore=0 phishscore=0 clxscore=1015 lowpriorityscore=0 suspectscore=0 priorityscore=1501 mlxlogscore=700 adultscore=0 spamscore=0 impostorscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102030126 Subject: [dpdk-dev] [PATCH] eal/ppc: add ppc specific TSC frequency value X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/ppc/rte_cycles.c b/lib/librte_eal/ppc/rte_cycles.c index c96a2143b..9359ac50b 100644 --- a/lib/librte_eal/ppc/rte_cycles.c +++ b/lib/librte_eal/ppc/rte_cycles.c @@ -2,10 +2,11 @@ * 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.27.0