From patchwork Thu Dec 17 10:47:11 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: 58545 Delivered-To: patch@linaro.org Received: by 10.112.89.199 with SMTP id bq7csp284270lbb; Thu, 17 Dec 2015 02:52:53 -0800 (PST) X-Received: by 10.55.198.152 with SMTP id s24mr60406578qkl.75.1450349573024; Thu, 17 Dec 2015 02:52:53 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id f185si10822426qkb.71.2015.12.17.02.52.52; Thu, 17 Dec 2015 02:52:52 -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 8DF2D615BF; Thu, 17 Dec 2015 10:52:52 +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 CE9506167C; Thu, 17 Dec 2015 10:49:06 +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 6B0D361623; Thu, 17 Dec 2015 10:48:58 +0000 (UTC) Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bn0109.outbound.protection.outlook.com [157.56.110.109]) by lists.linaro.org (Postfix) with ESMTPS id 0913E615EF for ; Thu, 17 Dec 2015 10:48:00 +0000 (UTC) Received: from BLUPR0301CA0022.namprd03.prod.outlook.com (10.162.113.160) by CY1PR03MB1357.namprd03.prod.outlook.com (10.163.16.23) with Microsoft SMTP Server (TLS) id 15.1.355.16; Thu, 17 Dec 2015 10:47:58 +0000 Received: from BL2FFO11FD033.protection.gbl (2a01:111:f400:7c09::126) by BLUPR0301CA0022.outlook.office365.com (2a01:111:e400:5259::32) with Microsoft SMTP Server (TLS) id 15.1.361.13 via Frontend Transport; Thu, 17 Dec 2015 10:47:58 +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 BL2FFO11FD033.mail.protection.outlook.com (10.173.161.129) with Microsoft SMTP Server (TLS) id 15.1.355.15 via Frontend Transport; Thu, 17 Dec 2015 10:47:56 +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 tBHAlK6D003857; Thu, 17 Dec 2015 03:47:53 -0700 From: To: Date: Thu, 17 Dec 2015 18:47:11 +0800 Message-ID: <1450349234-26340-8-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; BL2FFO11FD033; 1:wniTuOUW3iOMmRvTSPfzzSshCKzdlmKAgIYAhtymL1Cbk4mG6aXfyTjp1S/jyDfAk/1vjO1eN6HWQDMh0tgGd+3W85otWkbX6r4x8fC5bGW9Q2A7MtRv+nOHIgdI5EzZSvT6WnbRUNXK9kX7JskgVNXSOQPqIfLdDmf2vYhKHcmxTcEs5uhqpJ2kOPcsvz00hyABhaF5TjM9Nr2LPHmpeV2YC6rnuquv4B7r84q+IdaQzeRPd12NvbhBQvK56s10mC3jPCEbQv8w/am3GnbY2bKmMUj5dVK4F8cgmi7UUVrllU3nWG23eN9u6pggqlsI7fQwEjIa1jOpV/4cNfBtfakt6UQIuCpeBWjKUjK/+5eUAKlr+4P+eVdQUdkOnT20 X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(448002)(189002)(199003)(87936001)(92566002)(81156007)(86152002)(85326001)(77096005)(33646002)(50986999)(106466001)(97736004)(2950100001)(86362001)(229853001)(2351001)(76176999)(11100500001)(47776003)(189998001)(50226001)(50466002)(48376002)(5001960100002)(110136002)(586003)(19580395003)(1220700001)(5008740100001)(5003940100001)(1096002)(6806005)(104016004)(36756003)(19580405001)(41533002); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR03MB1357; H:tx30smr01.am.freescale.net; FPR:; SPF:PermError; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB1357; 2:i2I40rMyAnDajYQknoM+yQF8cO7DqWE1/UcZYjUc9tMpIuR1C6NmH+d5tyrJGoQqLJGTzFrks6peNtI1vf7iCgnMl2fN6+FFtrmNJtkAgg/8xxsRnzxpFGSEnhS9LLQ4QLDFOgQP/Rw6I2FwqvarAg==; 3:Gg8BUvft2QsWCNTAHI+ZjSv6zcHKl69eBlT7MLLwr6xZJDLOl+a1qdmOkyCv4Onb2gn1z5f0LoByEfiYEeCffHgJ2ibPPDymhi3OVoHOZE2SgnUaVU3EnADR8U5zuskqtgXrkVu11hh9adIVmwTbHXJ/7i1zPqKeY8E8WrZggN6814o8mVcmE8lsVY/hNGurgqj+ilc6kvTibXHoOd+Oyh2e3P23UCIObKeBvh2pS6M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bR55R30O/uy6p/qI1uv2 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(520078)(5005006)(10201501046)(3002001); SRVR:CY1PR03MB1357; BCL:0; PCL:0; RULEID:; SRVR:CY1PR03MB1357; X-Forefront-PRVS: 07935ACF08 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR03MB1357; 23:wLWLNF0jElk3p3wMsezst4OWEMneShmQrYLCS7kr5?= =?us-ascii?Q?hqBGvSaV3/BYbUyIWhMjSNPPs8aFIN9MHdMJck1UzyUMb31XRmFxz1XzsP8k?= =?us-ascii?Q?mf9YPTUfiIaPUJ3VYfVLAHGW+PGyswWrxlZz5AFfDOP3whMLbtitoRan6iCl?= =?us-ascii?Q?oB+QFYYr4xqt01C8PfoB49yeA4AZN8nq5BZUo4l2X2iASYvdMX31IiJNaFfd?= =?us-ascii?Q?nGGpgttmCGDSDasHUHkXAWYA9BmKN5Jvhbjh58hOIFwfn0FHM6ppSmhNvZMd?= =?us-ascii?Q?BzhN2QtS7XLIswCOFOOyDVa/xEl9njks6VwvvZithvbls4MX8t7B3IlP1zMG?= =?us-ascii?Q?7kgVx2ZRnBCkRI3SJ45Nj9NwXUEsN02aSJHcpnF0vjoWN/9+Hoc7i6Kg6rdA?= =?us-ascii?Q?KO0yRCamGhtNUhySIPw3guZ2LuOWPUawxWf3YWOuf62PzMrGYp16bKPcZbPK?= =?us-ascii?Q?l+neNu9Q5ym2Rpc9qfi9uWrIPXP7RpmnFtD0wHPRB+PLSzkWj37+K4U9EbRb?= =?us-ascii?Q?qO6NZR4RdBDFZ1FabY3zhlsMOrFp3uPlIQFOsv+3ZFfKFMyrgsTmCMxQdC9c?= =?us-ascii?Q?Ddcvs0hOVhXcOLJudYvxyrjSvwTgpL2de3CWvxSvbPcuLEF5H3HXPIQfKWjj?= =?us-ascii?Q?QWPwCTF+QYJBGw0WlSVTl7ds1AI7kadCEe9Wm4K1OjrbfUG1Ha221nDw25jk?= =?us-ascii?Q?eHMg00hoGZcLMVPBGVp+5ia2UvtZuYrGEOTt3yMPUAXlHUG/U8nf3+nyIVRs?= =?us-ascii?Q?Dr2rSpTZsDSz7V3dma2jPKLgLSQRQ4UNaD94WoAOslmARgZye1w11HBsaHOF?= =?us-ascii?Q?ZIuJ2fd0xDoR6drtYD2Spl1xtFqZRJaOaqI0xl1f10pH8SVIn0rwxcR5n0gw?= =?us-ascii?Q?7hgP0bAdW86jHGdUZ5oo+f5VgZBetdEHPkRgs7F1HaFvIFuaI04KUXI0nYt7?= =?us-ascii?Q?BZ4jGv8HjUJ/mCMYjxx5vwyHJ4v3kWqW702fW3Eee6AukraMNbdVdcCd5YK1?= =?us-ascii?Q?gLTHR59CkozV8d1Av2UBeiqajLm8aS1+fAC/RPUg300UA=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB1357; 5:d2AndMgPhzwhvO+oNNlmG1OSKgsGFVdF/YPqZbm1Gnw9RwUNYtJbjDOVN/BeGfqXy28FZkKcyOrhN5zrN4dQ4ithPM5wew2hHDD7HSc9PocykxJW7ENaOQhU4go4XjnSDe/nLgc8uGid1A/iI6HZoQ==; 24:vc+aiuLKZMEeJWbbfoPoXDA2BcveWgAEz0FoxdZ0NesrkrT7Xi8mgiScccMIVDBivNh4W8Gs39XhkYRg0eqICi+BGTucrMKwQDG8tqJLmYA= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Dec 2015 10:47:56.4261 (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: CY1PR03MB1357 X-Topics: patch Subject: [lng-odp] [PATCH API-NEXT 07/10] api: sysinfo: move odp_cpu_hz() 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(). 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 8a804d4..e354909 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); /** - * Current CPU frequency in Hz - * - * Returns current frequency of this CPU - * - * @return CPU frequency in Hz - */ -uint64_t odp_cpu_hz(void); - -/** * Current CPU frequency of a CPU (in Hz) * * Returns current frequency of specified CPU diff --git a/platform/linux-generic/include/odp/cpu.h b/platform/linux-generic/include/odp/cpu.h index b5b5320..69b9eb6 100644 --- a/platform/linux-generic/include/odp/cpu.h +++ b/platform/linux-generic/include/odp/cpu.h @@ -19,6 +19,11 @@ extern "C" { #include +/** + * Current CPU frequency in Hz + */ +uint64_t odp_cpu_hz(void); + #ifdef __cplusplus } #endif