Message ID | 1450349234-26340-9-git-send-email-hongbo.zhang@freescale.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.112.89.199 with SMTP id bq7csp284533lbb; Thu, 17 Dec 2015 02:53:27 -0800 (PST) X-Received: by 10.55.73.142 with SMTP id w136mr66779125qka.87.1450349606623; Thu, 17 Dec 2015 02:53:26 -0800 (PST) Return-Path: <lng-odp-bounces@lists.linaro.org> Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 46si10867581qgf.10.2015.12.17.02.53.26; Thu, 17 Dec 2015 02:53:26 -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 3ACE2615EB; Thu, 17 Dec 2015 10:53:26 +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 8B86F6166A; Thu, 17 Dec 2015 10:49:19 +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 0E8196165E; Thu, 17 Dec 2015 10:49:15 +0000 (UTC) Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bon0141.outbound.protection.outlook.com [157.56.111.141]) by lists.linaro.org (Postfix) with ESMTPS id 1F30A61667 for <lng-odp@lists.linaro.org>; Thu, 17 Dec 2015 10:48:01 +0000 (UTC) Received: from BY2PR03CA067.namprd03.prod.outlook.com (10.141.249.40) by BY1PR03MB1353.namprd03.prod.outlook.com (10.162.109.23) with Microsoft SMTP Server (TLS) id 15.1.355.16; Thu, 17 Dec 2015 10:47:59 +0000 Received: from BN1AFFO11FD025.protection.gbl (2a01:111:f400:7c10::144) by BY2PR03CA067.outlook.office365.com (2a01:111:e400:2c5d::40) 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 BN1AFFO11FD025.mail.protection.outlook.com (10.58.52.85) with Microsoft SMTP Server (TLS) id 15.1.355.15 via Frontend Transport; Thu, 17 Dec 2015 10:47:58 +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 tBHAlK6E003857; Thu, 17 Dec 2015 03:47:56 -0700 From: <hongbo.zhang@freescale.com> To: <lng-odp@lists.linaro.org> Date: Thu, 17 Dec 2015 18:47:12 +0800 Message-ID: <1450349234-26340-9-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; BN1AFFO11FD025; 1:bIpZE+IXKYnW3PCL7cK2K8F7kWJVaUTu4pKS6SwxbSSO6kKIuKWZ5RbFLY99FyjP7pVZGiD1Tb8dp3Hf5BrpcuH7YjMl5VnMZhA+0ZS2vA4tHrGqKzQJ5I9pd7t3RdP0+F0OG9lhfzZhkbWXj6miWHXO+D6RikYA++SOc6Eei6N+vnUp+fTjngsGGaBxGE8XyCOsTcfkZVWOoYL99QyP0qffzIBmHr73J1C8UhsGlP721I7puVF74FrEa/Qj2AoJ2rtPQED9xDondkpafoQoq3XioJCeLfF9PNou0SVjXr5LFzjLDMSUqZ/u8l9CcUH6l+jq9wQgQ9VX5zHtQr++u1lWj9PXqcp9BlOPcYNdWiU7Xs99s7o+1DyT+Um5e6IX X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(448002)(199003)(189002)(86362001)(36756003)(1220700001)(586003)(2950100001)(85326001)(1096002)(77096005)(106466001)(229853001)(5008740100001)(104016004)(2351001)(50466002)(11100500001)(6806005)(48376002)(92566002)(5001960100002)(189998001)(86152002)(97736004)(5003940100001)(50226001)(81156007)(47776003)(33646002)(50986999)(76176999)(19580405001)(110136002)(19580395003)(87936001)(41533002); DIR:OUT; SFP:1102; SCL:1; SRVR:BY1PR03MB1353; 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; BY1PR03MB1353; 2:+djL5fiU5HXxyCTCJUrAzzFeT8QGOui6bkQKd3QJMHphvTX7fAa7H9DAhZOYamJ4Du32x+j0MokIYx02WO1zECaWHn4jwehFmlPZNf8VxHybh2aUQMs3PNpZSyA1uB06Pji9Vs3EWN8cIywGHiaYAA==; 3:VxxyLXvBb0pUCv8B4RnV0VDToQ9/+cu8v/CmAxRpWFxeuHhkRjQ0dVxGF+J0onfAQPAYaqELGmsB/aFtETQNlZ3gNx8K23MShBI7QDYLLLg5h0VaDHhWHubxMxnrYQY2ZLcd3x3fat8b3t76AG6G3hbOTJs8HyGvhiHWvFQjQOJTSrIzI/2776b79QT7rp4yMydwKx6FSU+cxbaAWH5y0ruujj6d8Scjx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iZ4LFzY14QmEvveOwfBMWWXCgk6bDzHAzl1kMMqFOi2nOyIH14xJLO X-Microsoft-Antispam-PRVS: <BY1PR03MB13533E4806D28D857B33D6318EE00@BY1PR03MB1353.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(520078)(5005006)(8121501046)(3002001)(10201501046); SRVR:BY1PR03MB1353; BCL:0; PCL:0; RULEID:; SRVR:BY1PR03MB1353; X-Forefront-PRVS: 07935ACF08 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR03MB1353; 23:NnRMjdFHzgt8zdk6fwYieVhQAuf2G/a2yF0d0sGNd?= =?us-ascii?Q?UYCci+1PmgbgjjYeLyKufpcLddmxnF+4lr/boLXdQywsfmiOXJ3u1LWmzP8y?= =?us-ascii?Q?cVQ4+uJauESVGmzzNwGdf8Rz2JE/XMPXErAseANIISrz3iTfbDJjGMjpywbT?= =?us-ascii?Q?YnWIUAtM7eQa74l6TKlGfMd1Pf5ybe43+UMKcPrmyGguw26WYlDMpE4IFDI9?= =?us-ascii?Q?hv9velfi5Q+g8WCQEnAsVe+h9eildOV+r1fCQxAqUPuDZeJ65DD9/vajzaFl?= =?us-ascii?Q?1HZkA2V7o0r+7g3L616bJUetr3E+ciaJ4Q0ljZUT4nKmV9sjaHB/d7ef1hMc?= =?us-ascii?Q?kX0m3YoifCjGeijUX8RdR+8wtdj6y5b1myWG86i+QoKu++tRxDr3D7VZbm0a?= =?us-ascii?Q?OXtiTpd+tnN0SKDuL+upvd0zOoxxmm88h9NNW+uqY7TsuwWsAgOivkQeT2nv?= =?us-ascii?Q?JsiBSlWf+T/4dYOG6TlNW6BMen3h7EoFoEg6uS0QC/Hr6KRUUbSaKi93HdMN?= =?us-ascii?Q?vVLCdZDUFyt09pgu5k7XxLIZP2voEBeGghT0CBa0fVON8BHpOxkNZMhU87wc?= =?us-ascii?Q?dEeL6/nQlncpV2ty052hUlDQv190GuxnzzGYLBRLANgG03hy2VJwYobPDjhV?= =?us-ascii?Q?J4v5ni1l5xZJPBy7gtKsIo5akVlEcROKD0ufK7SSJXkwSHtrufd0dikzpQvZ?= =?us-ascii?Q?4iaFlAYdl4Loku0mvuCWuiiGMtsUSpjoSkddw0xLfITMLEddEQV96TzhZNF9?= =?us-ascii?Q?Kf60KRtEmcM6Xs+JjsPQf9slbtsjSfzHoJh8PvWvBOrNT7y9CFimOGRBSpsb?= =?us-ascii?Q?Ja+EMduRBeiW3ATQ249nrEAZprkFNFj7tWOArO3oSjyh8As/zfyBE4MfbAUA?= =?us-ascii?Q?6SrZt/DiNiBMNITuj2Mva7OWDNSCQGMAFH34L5BObcgf1WTkcm1fGS3vThNy?= =?us-ascii?Q?4Wa1da2QrtYkmMUh6XilCwkFNHHMO8iYQg5NBUkmAHDEkUBL1//z1vQwbZTR?= =?us-ascii?Q?+J16eKFmoad7+ZgL3j+fR79wJlGU+BHl4Tcfnc1w36e0Q=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY1PR03MB1353; 5:SBHq4wICR+E2KKWIoCvyjbJoFvRTKkua8wg4hk0CGkTrCaPpLyMaHjG1yVt+3MnPweH/z+D7Jq3DeaA3I2uH8h3MTQ+HbxqX2SOnO4r3qzQIh6wPuyxoCZQUljCHeVJXCbc0WaXaMveW0Veu60laig==; 24:25HJIonH+B0A9Ckhdi8zU6l1HX/s6JHdVE/4Zkaf1Xb/QTDW7DTeMxSktPTYHFKlZhDX8D/GxL0d14JdWzOwPM5hrMAOKsN4RnlEy93v42E= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Dec 2015 10:47:58.1897 (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: BY1PR03MB1353 X-Topics: patch Subject: [lng-odp] [PATCH API-NEXT 08/10] api: sysinfo: move odp_cpu_hz_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" <lng-odp.lists.linaro.org> List-Unsubscribe: <https://lists.linaro.org/mailman/options/lng-odp>, <mailto:lng-odp-request@lists.linaro.org?subject=unsubscribe> List-Archive: <http://lists.linaro.org/pipermail/lng-odp/> List-Post: <mailto:lng-odp@lists.linaro.org> List-Help: <mailto:lng-odp-request@lists.linaro.org?subject=help> List-Subscribe: <https://lists.linaro.org/mailman/listinfo/lng-odp>, <mailto:lng-odp-request@lists.linaro.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" <lng-odp-bounces@lists.linaro.org> |
diff --git a/include/odp/api/cpu.h b/include/odp/api/cpu.h index e354909..028f038 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); /** - * Current CPU frequency of a CPU (in Hz) - * - * Returns current frequency of specified CPU - * - * @param id CPU ID - * - * @return CPU frequency in Hz - */ -uint64_t odp_cpu_hz_id(int id); - -/** * Maximum CPU frequency in Hz * * Returns maximum frequency of this CPU diff --git a/platform/linux-generic/include/odp/cpu.h b/platform/linux-generic/include/odp/cpu.h index 69b9eb6..55d59d0 100644 --- a/platform/linux-generic/include/odp/cpu.h +++ b/platform/linux-generic/include/odp/cpu.h @@ -24,6 +24,11 @@ extern "C" { */ uint64_t odp_cpu_hz(void); +/** + * Current CPU frequency of specified CPU (in Hz) + */ +uint64_t odp_cpu_hz_id(int id); + #ifdef __cplusplus } #endif