From patchwork Thu Dec 17 10:47:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: hongbo.zhang@freescale.com X-Patchwork-Id: 58548 Delivered-To: patch@linaro.org Received: by 10.112.89.199 with SMTP id bq7csp285057lbb; Thu, 17 Dec 2015 02:54:50 -0800 (PST) X-Received: by 10.140.168.8 with SMTP id o8mr60438888qho.28.1450349690067; Thu, 17 Dec 2015 02:54:50 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id a193si10824081qha.61.2015.12.17.02.54.49; Thu, 17 Dec 2015 02:54:50 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 9749C6160D; Thu, 17 Dec 2015 10:54:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id A04BB61685; Thu, 17 Dec 2015 10:49:31 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id BB00161683; Thu, 17 Dec 2015 10:49:26 +0000 (UTC) Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1on0146.outbound.protection.outlook.com [157.56.110.146]) by lists.linaro.org (Postfix) with ESMTPS id 0256561670 for ; Thu, 17 Dec 2015 10:48:06 +0000 (UTC) Received: from BLUPR0301CA0014.namprd03.prod.outlook.com (10.162.113.152) by CH1PR03MB610.namprd03.prod.outlook.com (10.255.156.166) with Microsoft SMTP Server (TLS) id 15.1.337.19; Thu, 17 Dec 2015 10:48:05 +0000 Received: from BL2FFO11OLC005.protection.gbl (2a01:111:f400:7c09::124) by BLUPR0301CA0014.outlook.office365.com (2a01:111:e400:5259::24) with Microsoft SMTP Server (TLS) id 15.1.361.13 via Frontend Transport; Thu, 17 Dec 2015 10:48:04 +0000 Authentication-Results: spf=permerror (sender IP is 192.88.168.50) smtp.mailfrom=freescale.com; linaro.org; dkim=none (message not signed) header.d=none; linaro.org; dmarc=none action=none header.from=freescale.com; Received-SPF: PermError (protection.outlook.com: domain of freescale.com used an invalid SPF mechanism) Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11OLC005.mail.protection.outlook.com (10.173.160.91) with Microsoft SMTP Server (TLS) id 15.1.355.15 via Frontend Transport; Thu, 17 Dec 2015 10:48:02 +0000 Received: from ubuntu1504.ap.freescale.net (B45939-02.ap.freescale.net [10.193.20.87]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id tBHAlK6G003857; Thu, 17 Dec 2015 03:48:00 -0700 From: To: Date: Thu, 17 Dec 2015 18:47:14 +0800 Message-ID: <1450349234-26340-11-git-send-email-hongbo.zhang@freescale.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1450349234-26340-1-git-send-email-hongbo.zhang@freescale.com> References: <1450349234-26340-1-git-send-email-hongbo.zhang@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11OLC005; 1:0kkLmg5DknYZwcE6ndm1xnCvMNwrPNG+Ck4C3Iuyn3xXOyYUmRx0WRdYH3/jy29q5tNbpnXURKvEPF/OkP4qPb95KuarC9NwDbowPGfxrTW0IoXdn1yeAJCgG9JTwKLPnM7cmDufKQgHSQY2G0VB46K0PiXmfhhMZE6AvasEpjQ7iu7vs5s98svKUQHl3QmEtEJbFlKMA5FUUewGUXXfrjBEjNPyqeblELcrh1XYGFXXI68kwcY1Jsf7O7Md0mgs8111CDrm/L+PfB0kjyvQKNLEuvb6CNBX+YrX2OMPfBvFosJOATx12TMrOEFPit5iW7G9Mv1+muA08tNooCJL/UpD2eGg92Nh6ZnpZQeehFOyef4HRIyFc8vat8HX/8xG X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(448002)(199003)(189002)(87936001)(5001960100002)(50466002)(5003940100001)(1220700001)(586003)(5008740100001)(48376002)(50986999)(1096002)(81156007)(50226001)(97736004)(86152002)(189998001)(92566002)(2950100001)(86362001)(77096005)(6806005)(19580395003)(47776003)(106466001)(76176999)(110136002)(85326001)(104016004)(36756003)(2351001)(33646002)(229853001)(19580405001)(41533002); DIR:OUT; SFP:1102; SCL:1; SRVR:CH1PR03MB610; H:tx30smr01.am.freescale.net; FPR:; SPF:PermError; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; CH1PR03MB610; 2:0OtCoKE7d3OUVVcawtUPq6nFMFkTeWjclDxTQjAcOGp5PD+xGUDBUMbIlMqsY2ZbD8y1qXQJSxeBXP7Eb9mpB7fZEPp/0LL3tF1A/cprYGz0ZvzBlatactuFLXLHfyCMo5aX5mp3fVkSnvi0vsogJA==; 3:qgQTxKtgYyWEyCKW1A2p1YH2JoAdu1bP4DQW7hmeBWbMo1Ab9WLns7o+clbysyU2eiSmzxIvX8OLd9svB1SPTvrgujZR+rAy8EJNi5Y0Hc2jjVqRNIubnLcGJAQHxUeF/FhfWadyvJoauuKFY3dVYev3Qgm+HmrrjH8M763SqV+vgSlApTjvk2Nm48xMvT5Nurwgwd0JaAORGp76WiDlsg+4CO1pHnhkX00L7FYzxuY=; 25:la2DYdQf/HJ28HIjX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CqKM01uR X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(520078)(3002001)(10201501046); SRVR:CH1PR03MB610; BCL:0; PCL:0; RULEID:; SRVR:CH1PR03MB610; X-Forefront-PRVS: 07935ACF08 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CH1PR03MB610; 23:JQYU4y6kd50ALGn7MnUyIYRjc/LiHUiUMpfdcdVIr0?= =?us-ascii?Q?GqdqPdxezKWCHp09LOeY0St65EUQJpCHf11JkYyLvFndNAfwQmiz06gIK4Jq?= =?us-ascii?Q?m7isX//dNKjdMGEtqy7AqEFRnf37pderUL0p8od7Sjx23s7UB78DeByedPRJ?= =?us-ascii?Q?UIAm14m3x4Un4CM+AIT3k381dCJBiLFIh5JeGXdV/p3Pr8lX5IPU+qvoPtPQ?= =?us-ascii?Q?P3NgQsAlC3Fx3Xn5QJlfuQBZJRV9RhszsVblE16/H4p0wXDl65sYlD+7g4yl?= =?us-ascii?Q?+QFpQin4ocS5hBzj5EoJXU58KU9qD6JteFvhtxDLYo9Po7b/kaQVeYDL3N3k?= =?us-ascii?Q?umHof3yhdWfrdF9T8kAmMTb5CQUG297vB+JVL8IbcwK+L/UJaCUpmoEyIP6A?= =?us-ascii?Q?9+bppoOTMxFFrJhZOPXYQVCPUDI1W6XL6pULJmaXdNrRoyAyEePBEj1veLvR?= =?us-ascii?Q?SquJn8T9/1hTlYtORBFRxZfrdUEJfAFuslJ27zxjsGtgA/mXyDiJfPGUXA7A?= =?us-ascii?Q?urxlJnP3zpmJq8X2dBRz5b2bEUpCAj2sQbJKGI+dSPV88MXzSWfTQeZtQhwZ?= =?us-ascii?Q?msiuRYX1MMsumy7cIVRqLB0d5HDrur9xWL+47TPfn17ExaF1egadK+hR02xU?= =?us-ascii?Q?Y0NHAGZMz3O25zWu2UDT9jBwXWZYwnflSNKVucnRDl24jJ2Q83Xfves3/KAn?= =?us-ascii?Q?eSl984vwEDKD/tXhSM06z1oFVkrZV/QWEIIQU4OyUpubauihND04f7wRf7uH?= =?us-ascii?Q?fwFQKMgcEjYLSbllYZr7Ennf3Lvow+M4sd5chYIZE9TnP1jNUtPak4Moszep?= =?us-ascii?Q?siHE7xF+kuWNg0CLRR6Y8I1G4ZcENQdsnjBETLq3ezSZ4hNzOv/BFQDWZyOx?= =?us-ascii?Q?tJROWZlQdK9NOwzumtBOEF7EagF1WtMRmG2+zkhc5EMHSh0D0z0R9Ppber8p?= =?us-ascii?Q?E8yciZa07oxioPKnY13BPgaYIrDJYHWAu2mDmmhPMUUf3+kUl1QDn25A/Ccu?= =?us-ascii?Q?EhbLVGjP3OULEykRf6O7fZ?= X-Microsoft-Exchange-Diagnostics: 1; CH1PR03MB610; 5:gNwUJpjkIapRCgOZfV1OF5+iU8P+vKhI7jlfdE/soHKUAWlqY0DhxbmZzOq57og91yNUfemw+WMSui4ShcUUW3uwCtyRwV2o8LPaQ//LYYYEB67B0fxrzI56f7rxZQHpeJXtJaV4hRSsfEFzU8JYag==; 24:9yDHE4t6DW8mLa47wX+lrnplFuZJw7//DaKMKINej733t6DjgVXC+NLXRGc0QOkD/zU33FSApIPk+1MyWaHYueE4x7fb3fSVXoFW+qmHFzU= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Dec 2015 10:48:02.7033 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH1PR03MB610 X-Topics: patch Subject: [lng-odp] [PATCH API-NEXT 10/10] api: sysinfo: move odp_cpu_hz_max_id() for linux-generic internal X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Hongbo Zhang All CPU frequency APIs are moved for linux-generic internal, this patch moves the declaration of odp_cpu_hz_max_id(). Signed-off-by: Hongbo Zhang --- include/odp/api/cpu.h | 11 ----------- platform/linux-generic/include/odp/cpu.h | 5 +++++ 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/include/odp/api/cpu.h b/include/odp/api/cpu.h index 8d1b382..f985515 100644 --- a/include/odp/api/cpu.h +++ b/include/odp/api/cpu.h @@ -66,17 +66,6 @@ const char *odp_cpu_model_str(void); const char *odp_cpu_model_str_id(int id); /** - * Maximum CPU frequency of a CPU (in Hz) - * - * Returns maximum frequency of specified CPU - * - * @param id CPU ID - * - * @return CPU frequency in Hz - */ -uint64_t odp_cpu_hz_max_id(int id); - -/** * Current CPU cycle count * * Return current CPU cycle count. Cycle count may not be reset at ODP init diff --git a/platform/linux-generic/include/odp/cpu.h b/platform/linux-generic/include/odp/cpu.h index ff61855..7edb10b 100644 --- a/platform/linux-generic/include/odp/cpu.h +++ b/platform/linux-generic/include/odp/cpu.h @@ -34,6 +34,11 @@ uint64_t odp_cpu_hz_id(int id); */ uint64_t odp_cpu_hz_max(void); +/** + * Maximum CPU frequency of specified CPU (in Hz) + */ +uint64_t odp_cpu_hz_max_id(int id); + #ifdef __cplusplus } #endif