Message ID | 1442325342-13806-5-git-send-email-hongbo.zhang@freescale.com |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDPILVOKSELBBD6I4CXQKGQESQ2WCYA@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f72.google.com (mail-pa0-f72.google.com [209.85.220.72]) by patches.linaro.org (Postfix) with ESMTPS id 881F622A0D for <linaro@patches.linaro.org>; Tue, 15 Sep 2015 13:58:40 +0000 (UTC) Received: by padan5 with SMTP id an5sf352156793pad.0 for <linaro@patches.linaro.org>; Tue, 15 Sep 2015 06:58:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:in-reply-to:references:mime-version:spamdiagnosticoutput :spamdiagnosticmetadata:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :content-type:content-transfer-encoding:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list; bh=tdVNlCEMHTBq0Uf2N2I3ev+cCwi96N5BjeK/J5+xYoo=; b=ZreEtdpk8FT89Qk2IDGFNzrMe98LUPySvPE9FSQXP6nqZuK9qdTCV1J3JwgysRmBxS hvTmjLJTTN93oOCE6RNiIEMZO0cX7BXcuRUc9B3FpHT+da4nQ2dnrR7KOmdrowYkAdwY r3n62/pv3jeuF7Hd2ViYpVQF6LHXtUXVIoNdFfX2MD3SpN4+wzcHStk0qnFUU6a81px/ 0V8nHqUGfbjDDxr/nkDF3FSxNsfAckwYdzO4HAETK3fXq2HHwGzBQcBaX0p2sYDJZLrb E8N1dzO52JIe5I8cR+K/cOkZuan9hEBNPwxWuwpfvfX3t5pU16UYICa0d1jWcGcfSala EVwg== X-Gm-Message-State: ALoCoQkGsQ2OEbrL5y1pEsu0INDZJoqbFtzHNpTlxbwnhWYinxyt5D5Dt8kSf+0MJuWlvgvap840 X-Received: by 10.66.249.100 with SMTP id yt4mr18960498pac.42.1442325519892; Tue, 15 Sep 2015 06:58:39 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.88.177 with SMTP id t46ls2618635qgd.2.gmail; Tue, 15 Sep 2015 06:58:39 -0700 (PDT) X-Received: by 10.129.19.214 with SMTP id 205mr11935500ywt.130.1442325519690; Tue, 15 Sep 2015 06:58:39 -0700 (PDT) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by mx.google.com with ESMTPS id f4si11458165lam.63.2015.09.15.06.58.39 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Sep 2015 06:58:39 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by lbbvu2 with SMTP id vu2so13416963lbb.0 for <patchwork-forward@linaro.org>; Tue, 15 Sep 2015 06:58:39 -0700 (PDT) X-Received: by 10.152.37.162 with SMTP id z2mr16410990laj.117.1442325519501; Tue, 15 Sep 2015 06:58:39 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1821389lbq; Tue, 15 Sep 2015 06:58:38 -0700 (PDT) X-Received: by 10.55.221.142 with SMTP id u14mr31927782qku.78.1442325516966; Tue, 15 Sep 2015 06:58:36 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id r25si17006387qkl.128.2015.09.15.06.58.36; Tue, 15 Sep 2015 06:58:36 -0700 (PDT) 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; Received: by lists.linaro.org (Postfix, from userid 109) id 0DFC062D0A; Tue, 15 Sep 2015 13:58:36 +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 4B85362C51; Tue, 15 Sep 2015 13:56:40 +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 BB41B62C51; Tue, 15 Sep 2015 13:56:34 +0000 (UTC) Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0111.outbound.protection.outlook.com [65.55.169.111]) by lists.linaro.org (Postfix) with ESMTPS id 661F461A3D for <lng-odp@lists.linaro.org>; Tue, 15 Sep 2015 13:56:02 +0000 (UTC) Received: from CY1PR0301MB1276.namprd03.prod.outlook.com (10.161.214.24) by CY1PR0301MB0620.namprd03.prod.outlook.com (10.160.142.27) with Microsoft SMTP Server (TLS) id 15.1.262.15; Tue, 15 Sep 2015 13:56:02 +0000 Received: from BN3PR0301CA0072.namprd03.prod.outlook.com (10.160.152.168) by CY1PR0301MB1276.namprd03.prod.outlook.com (10.161.214.24) with Microsoft SMTP Server (TLS) id 15.1.268.17; Tue, 15 Sep 2015 13:56:01 +0000 Received: from BN1BFFO11FD027.protection.gbl (2a01:111:f400:7c10::1:148) by BN3PR0301CA0072.outlook.office365.com (2a01:111:e400:401e::40) with Microsoft SMTP Server (TLS) id 15.1.268.17 via Frontend Transport; Tue, 15 Sep 2015 13:56:00 +0000 Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1BFFO11FD027.mail.protection.outlook.com (10.58.144.90) with Microsoft SMTP Server (TLS) id 15.1.262.18 via Frontend Transport; Tue, 15 Sep 2015 13:55:58 +0000 Received: from hongbo.ap.freescale.net (hongbo.ap.freescale.net [10.193.20.3]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id t8FDtiXT031670; Tue, 15 Sep 2015 06:55:55 -0700 From: <hongbo.zhang@freescale.com> To: <lng-odp@lists.linaro.org> Date: Tue, 15 Sep 2015 21:55:29 +0800 Message-ID: <1442325342-13806-5-git-send-email-hongbo.zhang@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1442325342-13806-1-git-send-email-hongbo.zhang@freescale.com> References: <1442325342-13806-1-git-send-email-hongbo.zhang@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD027; 1:qHwcj38ajXMGV4V0OZ0IhiUHEjg2L8gHFBvMN1LQNGsX/zsEFAIsVh2Xqufo4b8cGQucANeZcN1OfHmDf34gh6VWWnAGiSG2GsEHFOqYbxqVZmX26NXpcfrAqNZ25ow4oN+bGmuS4bOEZvgIB01AxMURJuk3zps42jB2LKaEPxfgbCRAnpM2R/H3TzZOBusysZTb4uHQh7NBzhtihjaPyM4foP7VkfUgH2edlH8rEXTYKBS03QCOnBLc6J9zWTc15ux4+NyRA6iRmgHGpGuiZ0qlghpTMIvTu2VqZNsC2imS+NU9eUasV3ZlkH7AroLUOIpL9Audd9jfePstLEAWSVu61AIEUs8o3L/KsU7XoGnVhdLRVQi9PdLOF8d328AkJszvRvs7DzfNZrx6oqHFCw== X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(50986999)(86152002)(64706001)(68736005)(47776003)(5003940100001)(19580395003)(6806004)(19580405001)(76176999)(92566002)(5001860100001)(81156007)(4001540100001)(86362001)(36756003)(69596002)(77156002)(48376002)(77096005)(2950100001)(189998001)(5001960100002)(62966003)(5001830100001)(97736004)(110136002)(46102003)(33646002)(104016003)(5007970100001)(87936001)(85426001)(50466002)(2351001)(50226001)(229853001)(105606002)(106466001)(217873001); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR0301MB1276; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:3; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1276; 2:l/9lQ51292xp+zefhrFMmbVifeNZM4vAIkNhJCUy+wwSXfN0AfqcqEL1pIYcPGsXUgHDyzTV/gXiC5m+JDg9tBhcCp/myMIUvc5+jsW/3DSSpgvfZf9Btro5gTcXfv38RRIGwoIaXPwlqBBkWay0ksoP7RAsJKeiQO8EAUNn5NU=; 3:jfBgxITFJVg2AJJ/kOw3PQQX5Am90mz7wxLezNxle0LkHakX3GYR5W27+6D+DCZL/DWKmE8638ro+JPjGOr1A6j2iBil/kZlrJKcSlvoTzOgp5VTHKmh9bzUnAr0N2r+t9dGWVlmy5gFQPQIennb+cKb/OGFcp39c8rRjSuP3VaeByoF3T3L8O6iD/YV6H6EAilEr26VneRg1wVF/oP0F4rg8efJmqxOdjTFtUeaLc4=; 25:xEHyC9O3XqiUaGVQvJhc8vWiPMML+3WRUdTmrhBK/sxRfxolv0wpqhoFCJ+pecVvfndyl9a0URtJeAZyh+fFo11XEH1xRqp6JH9oWAfFgpoctYBk7uf76y7I14CEVGAW5xntuP2br44GV0032NIf74iCnJhw8jIdo3BrH+TfzaDOQk6tI5uIKnEPDftcomkLG2LqPo4wub2W7BB2sHjNJISVw1CO12P9VACffLV0+YMx+H99tD0QSPBjjiosPylusdJEqYzQWmN+g1B7zTm5Dw== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB1276; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1276; 20:NnHK1YUAiMyGW3AfoG98YlAvKUlI0HXuQKjyi/44Xm7/oKnqR0t7O+fKtZjIfEUBvpx1a0kh/1dF1Nmd6xNTTuPZrsA7b8PDMIvXx7hO5AYxe/S+ieF2nrRAQ69pRVUdac8KYzRbCbi0lQ9E0EkByCKNjAON0sqj3w0gxk4svxiUi365pXlMGHy5xXNAaYo42RCU81eA14GIc7jP91mxFlOO4c3nE+jKqiRfGT5bpe9W9ZWpFGLiAIsBd4wpS1pe0AlSuJPjsFM3+qUDgU3IciIus8UMnwwr8XvqwwAFZoGA2UMkGrcm0NusqZMvvj0oEEj6pD0e0UWAdjmgwpIOUEvuCn0bCl+zNiZS+tf9hqM=; 4:Br9FP+uKZ3x42tUIZVt5z8Bwp53eNuxkDm6AiOsWLWI6aMLq/+RvagPCDko4z7Pw6njrIDRpPQ3PgNgOXx9ngYjQR/IXMSFSvsA7KN9shvC1FTGP7hqwPduqFZAztXCWJwsQS/G9lggFVwmXyo5y73+zJxOBXiwYDpAwEYf1jt2qsflEjnUogUwp8TQMlRL4yF4Wm4Zy6PAL3twIEo7C+N0dpilBpwwzyAdlhX3Dp+P/535hXeDWVRbFth2eqKN+MWlJa+UPQpjIxQf3iuMhRjo9pUcvigDOV1hLrbQU7Yfy9kC027OR4oxJTkaJ8JnJPTXWGrN0boBdbnwVM0+D+Pm81vAMVCrBIDrqSnSHPgA= X-Microsoft-Antispam-PRVS: <CY1PR0301MB12761A46D9E1A3FFB6C06A088E5C0@CY1PR0301MB1276.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(520075)(520078)(8121501046)(5005006)(3002001); SRVR:CY1PR0301MB1276; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0301MB1276; X-Forefront-PRVS: 070092A9D3 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB1276; 23:v/KeuI2EBcphNKQwglWqtvu01KHsnrUYrsi12Fa?= =?us-ascii?Q?rU7jcRxdONNwE7V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ascii?Q?NgqnojnnfqYTiMo5OPVlAf8D3kfXL/7h9fXa/JYds4iFShZo/9mxpsmvfnry?= =?us-ascii?Q?Yu2R1D6WrzQEJ7lpJqEsHcD/07PHwWcLh3UXe+9mAIhGLqmNKdNfImV8NHRw?= =?us-ascii?Q?3haYI+HD/1CunfhhbUTFAcUodV4gB3c0Mj/Jn3kFRfwMpgu0c9iQCGxCGNRA?= =?us-ascii?Q?maWdw9WM2E3sHjhggA+jkKiqfE+BXE8oBvzLUMe8ESfNQu4ThGsd9YoN8/a3?= =?us-ascii?Q?BSClmFvwAO0CtP4H0fgRR6VOFoe2ZBgSS24iuyf9Ed3jXL26TVncJg9uG3SJ?= =?us-ascii?Q?aAyEUMCxUGXCTESgVo+E=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1276; 5:qjaxVzZXceccmFkEMM/Bo4VTQ/G68CG8tNiqvjysMs5aKndCTK1z53It3mcshfqIWyEmjZnBL2RMnDOZSyCts/3x3AerrIPS+E70pdCAdsVSR8ev+LD6a7ZqimClWDVhUaCdq5J9ElCLlhnhPxWNSA==; 24:tvZyIo04Gg0DK7UGCIYxLcNHMGvfXMLati0kXr2ULanZXEuix5YIzkqXOOPLXRxHWtJZ5bSIRxXngZAV68qTfAX6FFukoi33zCTw9dB3/RE=; 20:HPpFSqjB4z3KQr6CJqKDphb99PdoiPhDUINUhFPz0PEC+TgG3xcBuEL9Tnwtw9u+sQaIUlkGm4VvSdAUmaOQ+A== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Sep 2015 13:55:58.5793 (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.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB1276 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0620; 2:V9bn7smcoVk3jFy2W0X45w3zX3rqvM5bdOluu968JzTKivSdJlzAFNf6ifo21Tx53o42cC4+CKOlzC/EvGETKpFOnMLTeE5S3wSUlq8KfKx349kpNtUwKvHZhxkKgbxf4V8HbgJcqsew/w9T3cV/r3RaCgmmPymPlzrhcSuJwrg=; 23:g5Vrvn+6eKtRJWP6AbILvA6/9d5qKdifk3HtL/t06UXaL0bE+SsQhe2gIl0Dt+dZ9F9S7My70kWqfeF057jI6r1kTwE9WwITHxAMAYpMrrN2tYVgnQ0H+VdSAZiLt5u6t6GwvpOC9X6b4BFH1qAC7BeESeLtp+aZfbdesPfaaJfr0x7aSxybhhHuUd8sTzlj X-OriginatorOrg: freescale.com X-Topics: patch Cc: petri.savolainen@nokia.com, stuart.haslam@arm.com Subject: [lng-odp] [API NEXT PATCH v5 04/17] api: sysinfo: move CPU Hz API to cpu.h X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: <patchwork-forward.linaro.org> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> 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> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: patch@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 |
diff --git a/include/odp/api/cpu.h b/include/odp/api/cpu.h index 78c3ffc..b63a2e9 100644 --- a/include/odp/api/cpu.h +++ b/include/odp/api/cpu.h @@ -53,6 +53,15 @@ int odp_cpu_count(void); const char *odp_cpu_model_str(void); /** + * Current CPU frequency in Hz + * + * Returns current frequency of this CPU + * + * @return CPU frequency in Hz + */ +uint64_t odp_cpu_hz(void); + +/** * @} */ diff --git a/include/odp/api/system_info.h b/include/odp/api/system_info.h index 1cd883f..bde3a60 100644 --- a/include/odp/api/system_info.h +++ b/include/odp/api/system_info.h @@ -24,13 +24,6 @@ extern "C" { */ /** - * CPU frequency in Hz - * - * @return CPU frequency in Hz - */ -uint64_t odp_sys_cpu_hz(void); - -/** * Huge page size in bytes * * @return Huge page size in bytes diff --git a/platform/linux-generic/odp_system_info.c b/platform/linux-generic/odp_system_info.c index ed6b515..8e903b0 100644 --- a/platform/linux-generic/odp_system_info.c +++ b/platform/linux-generic/odp_system_info.c @@ -374,7 +374,7 @@ int odp_system_info_init(void) * Public access functions ************************* */ -uint64_t odp_sys_cpu_hz(void) +uint64_t odp_cpu_hz(void) { return odp_global_data.system_info.cpu_hz[0]; }