From patchwork Thu Dec 17 10:47:13 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: 58547 Delivered-To: patch@linaro.org Received: by 10.112.89.199 with SMTP id bq7csp284709lbb; Thu, 17 Dec 2015 02:53:59 -0800 (PST) X-Received: by 10.140.108.8 with SMTP id i8mr66906415qgf.24.1450349639240; Thu, 17 Dec 2015 02:53:59 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id p74si10836595qgd.66.2015.12.17.02.53.58; Thu, 17 Dec 2015 02:53:59 -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 CF2DE6160D; Thu, 17 Dec 2015 10:53:58 +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 1BCA761673; Thu, 17 Dec 2015 10:49:21 +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 978B461671; Thu, 17 Dec 2015 10:49:17 +0000 (UTC) Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0146.outbound.protection.outlook.com [65.55.169.146]) by lists.linaro.org (Postfix) with ESMTPS id 7F4776166A for ; Thu, 17 Dec 2015 10:48:01 +0000 (UTC) Received: from BLUPR0301CA0024.namprd03.prod.outlook.com (10.162.113.162) by BLUPR03MB1345.namprd03.prod.outlook.com (10.163.80.23) with Microsoft SMTP Server (TLS) id 15.1.361.13; Thu, 17 Dec 2015 10:48:00 +0000 Received: from BN1AFFO11FD045.protection.gbl (2a01:111:f400:7c10::113) by BLUPR0301CA0024.outlook.office365.com (2a01:111:e400:5259::34) with Microsoft SMTP Server (TLS) id 15.1.361.13 via Frontend Transport; Thu, 17 Dec 2015 10:48:00 +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 BN1AFFO11FD045.mail.protection.outlook.com (10.58.53.60) with Microsoft SMTP Server (TLS) id 15.1.355.15 via Frontend Transport; Thu, 17 Dec 2015 10:48:00 +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 tBHAlK6F003857; Thu, 17 Dec 2015 03:47:58 -0700 From: To: Date: Thu, 17 Dec 2015 18:47:13 +0800 Message-ID: <1450349234-26340-10-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; BN1AFFO11FD045; 1:44KaQ50fzGQ1KgeM3s3i2bqkc6F1F46wXk1jbXejwHRD/SfuY/BVIxrCoQsFkJkKa3cNGc95i4bVWIrtGOaPBq2Gf0O2mQRs7FXisOqloWAJv9a7jknAF9Gk9CkkLO/hutbydXlf2+AcIbhOyyW2n4I6OVX1RXoRthkhy186gMRxYDHl/t+CJ8y3WNY7jWFVs0YOlGGSRoWqm3CzlBh73GldfDXGhaGvvktwMZEnqTlg8aWi2A0t8yM7OxDdizW2YLfDEhgl/kQjjKfSfp9AVh9FMsZlK5RF845snn442VB3dGAvOlCFtbS7+jJUMD46YPYNhEDD5+0DMc0bGuy3yb0Oq95FH/2q6IX7CdPuYVCANxlys59lk0K19EUAzgjJ X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(448002)(199003)(189002)(19580405001)(11100500001)(5008740100001)(229853001)(50226001)(2351001)(86362001)(1096002)(1220700001)(50466002)(586003)(85326001)(36756003)(47776003)(33646002)(87936001)(2950100001)(86152002)(48376002)(5003940100001)(19580395003)(104016004)(77096005)(81156007)(110136002)(5001960100002)(106466001)(50986999)(189998001)(97736004)(92566002)(76176999)(6806005)(41533002); DIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR03MB1345; 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; BLUPR03MB1345; 2:Y1A0xpEa21shju3tD1qa5Y7Dwn+DON3zyfR4T9HUbKIv1IuP+dYu2Nm0VSbk1VthzaV4yLlyozACGOeUVXlt9NwXHDiu9P/4NoKD7InOc5aLFRjz7rLJ23Eqp0XsUEQGOg7d/a6+4k5bBpJhpElbMw==; 3:ovRpwp50U7VUgY8w8IwLUdwU80JEiCHL5HfhYcZLUTKuXrtaOre/cek9BLh8qszU0RHaFcL4FmojgEF0KmK3tGZpOA0V+h+evKs8yLJ+d6CEiA6nQAsum/7pPAreQNAufuPHgrUJTGvQf1tZ6F1wDzVPjLWPmYZXM6K9l3/KLJEwgzudCqTpV9gUbPHtYA8bOPmGTm9m8jSmUXuRW2dZ4hcB/SnuPRF+MSOLkz5C/kQ=; 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8bLXit2Zbo8pr/XLAXJ3O+X6tWsH X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(10201501046)(3002001); SRVR:BLUPR03MB1345; BCL:0; PCL:0; RULEID:; SRVR:BLUPR03MB1345; X-Forefront-PRVS: 07935ACF08 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR03MB1345; 23:Lynw+0g21XfL/pa+m/JezjZmgH9pF6bDd9xSN2OS3?= =?us-ascii?Q?ye5VZPu+J2SKGQxpYUImvzE0Ba1yuvS0bR5y3GFjskOyjmsA1U+ZDI2z1Tyq?= =?us-ascii?Q?ri4OXRj5IQPpQn5MbWzBz0NumOouRVECovq6y/2dBpwiaHzSKTPlUYVJqvql?= =?us-ascii?Q?AS0+aeKK/iTwmA5LuNEE+tRJO5X/3gLCpMjgfYI2EfjF6tmLFRFP2TIr1ZaU?= =?us-ascii?Q?IzdPSYJn4o3xo5M1fxgr63xBnIZqKjdFpupWfwz5IUTo93HE2KjBDfXNJ5yz?= =?us-ascii?Q?CJjNFIEm0VVvT5QgNH1xaLtxEaFd0EJAM5+0YCmAOTReBGMIFnchqZ6qDZIm?= =?us-ascii?Q?KWkp2WY1BDqqhk8ybbvejA26cOHOoD5npfk7cNQDkZYTaDpDHN1+GxUgUzga?= =?us-ascii?Q?tRkX/T34YXtSpA9qs+HaX957E1ON+t3BUae2w1gEzBl6ra5tvVOUubTr243d?= =?us-ascii?Q?4Mt6b6488o/z2NdLc7AC4XsGHKtqXZ/c/NN8tRA22N8fJ77nJV5d6M2m6so3?= =?us-ascii?Q?ccDHY3MWD5jSShJ0vtsKuqFjTemMRQNxf6lcGh63b7Pg0sS4cs4bHqDTvlJu?= =?us-ascii?Q?5LoqXI1abULcEU3lPI7TAdCiURgojlneQ8PADTXhHUJgySYWOL2uzPtFGhwr?= =?us-ascii?Q?4jvoDr18a4Bu2E609nLLnrvK24wolApLBamngnSY/5flW2jCOAEBZ6yacUY0?= =?us-ascii?Q?qIR7VV0tZPJf75vapTJF94w0RdKm6Hdvs+aL62ZtfeqZKnLr2uG5DCqED6vW?= =?us-ascii?Q?IcVdmnqJuGl9Wrm9bhmYohK1EkixqMASccpIQp4J/1X7bYMhxrsuTtK+AWTO?= =?us-ascii?Q?cFPu2JZxiG/CV/eP5901+1H4RERDTlMX27wfbAl1PNrG5OMNWxVbomt9DjDV?= =?us-ascii?Q?qJoeugse95hR34GhlwCn1dmFcKkE88fUKzy41dtlijSWw/VEbpzWOlHTZsXp?= =?us-ascii?Q?fvedl0tTLINVsKeCQFXjlAQnW4zsUZuy6WiPc+u2CQsF3RcuWCt219ZBVrNs?= =?us-ascii?Q?SHvL683Mq6JQsDl1RKj3U+xMuBSufVP+EetQW5NKOuyUw=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB1345; 5:aLOW1LixQqy4yg001thk3EmQerDVjApBFy7kWubmvySRSGjPufVwl9aXfbBNsRNFR88GlVm/9bZlsozVU7z+r+/SaJPU69tiu2/CJ8Zhx6jrBJvXv5Ekeb1TmKX48vb5NtHxpJY1CtjEid1KLJwKJw==; 24:/vesU6AamCDNvQ5w9cjzM2apWJIHYbQNxKqxaJivt/c44fD4q2Wix8plC4XHO0grvVu9JBlUWoWf0PT3ogys5xoe7Wyo6oWTVeKgFQO3jkE= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Dec 2015 10:48:00.1850 (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: BLUPR03MB1345 X-Topics: patch Subject: [lng-odp] [PATCH API-NEXT 09/10] api: sysinfo: move odp_cpu_hz_max() 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(). Signed-off-by: Hongbo Zhang --- include/odp/api/cpu.h | 9 --------- platform/linux-generic/include/odp/cpu.h | 5 +++++ 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/include/odp/api/cpu.h b/include/odp/api/cpu.h index 028f038..8d1b382 100644 --- a/include/odp/api/cpu.h +++ b/include/odp/api/cpu.h @@ -66,15 +66,6 @@ const char *odp_cpu_model_str(void); const char *odp_cpu_model_str_id(int id); /** - * Maximum CPU frequency in Hz - * - * Returns maximum frequency of this CPU - * - * @return CPU frequency in Hz - */ -uint64_t odp_cpu_hz_max(void); - -/** * Maximum CPU frequency of a CPU (in Hz) * * Returns maximum frequency of specified CPU diff --git a/platform/linux-generic/include/odp/cpu.h b/platform/linux-generic/include/odp/cpu.h index 55d59d0..ff61855 100644 --- a/platform/linux-generic/include/odp/cpu.h +++ b/platform/linux-generic/include/odp/cpu.h @@ -29,6 +29,11 @@ uint64_t odp_cpu_hz(void); */ uint64_t odp_cpu_hz_id(int id); +/** + * Maximum CPU frequency in Hz + */ +uint64_t odp_cpu_hz_max(void); + #ifdef __cplusplus } #endif