Message ID | 1442495411-12362-14-git-send-email-hongbo.zhang@freescale.com |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDPILVOKSELBBIUD5OXQKGQEG2U75WI@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by patches.linaro.org (Postfix) with ESMTPS id 50F7D22E57 for <linaro@patches.linaro.org>; Thu, 17 Sep 2015 13:35:31 +0000 (UTC) Received: by wicgb1 with SMTP id gb1sf7664221wic.3 for <linaro@patches.linaro.org>; Thu, 17 Sep 2015 06:35:30 -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=owsTAWI0I5zDCSipp4WycpuymMCHpPoqJFDf4OojsIM=; b=ddf2VtIFJ7kV1UTSuruKxl1lJezZOQeGOdcKFy9HuTBCtlwjA7IOX34ItIp5+2jiN0 3KlmjrIBhORGO6W/13sUkeRyqi6TemCsZ0KvAiVwGDB/2S7jm9ktToWfQ2ze/Cwtqwsu C8PK3RehpWEwc4MCbs8OvZKa26cor3pxXCIZm9Az4hX5nNDmolUHN3sdzHqemUZ4IXkx dhhwTX+lahBMGuQXzwZDdDy9IK2rph+qkwAusrVbCJYBKCXKsdxjf7+ZYPOGHaTpReXP e3MoIiWQFCLiRuZ89i786UbGlSaXlGgfC/4cEo1+OaNJ2zNHlBfE7HW9U05Ode3w/Aa4 m+Qg== X-Gm-Message-State: ALoCoQmKwQR9h+Kv2SX6IqaR4LEZDgx8ML6fqdi2F7NLbzTkrTYR9ppMmLQwXmGowGJlPwZz26B0 X-Received: by 10.112.55.69 with SMTP id q5mr335679lbp.24.1442496930585; Thu, 17 Sep 2015 06:35:30 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.28.103 with SMTP id a7ls28840lah.7.gmail; Thu, 17 Sep 2015 06:35:30 -0700 (PDT) X-Received: by 10.112.135.164 with SMTP id pt4mr5023243lbb.107.1442496930453; Thu, 17 Sep 2015 06:35:30 -0700 (PDT) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id rc5si2306193lac.42.2015.09.17.06.35.30 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Sep 2015 06:35:30 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by lbbvu2 with SMTP id vu2so9364209lbb.0 for <patchwork-forward@linaro.org>; Thu, 17 Sep 2015 06:35:30 -0700 (PDT) X-Received: by 10.112.135.9 with SMTP id po9mr31746189lbb.56.1442496930320; Thu, 17 Sep 2015 06:35:30 -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 w3csp3075684lbq; Thu, 17 Sep 2015 06:35:24 -0700 (PDT) X-Received: by 10.140.106.180 with SMTP id e49mr51689553qgf.45.1442496924385; Thu, 17 Sep 2015 06:35:24 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id g78si2582261qhc.132.2015.09.17.06.35.24; Thu, 17 Sep 2015 06:35:24 -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 0241A62D6C; Thu, 17 Sep 2015 13:35:24 +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 8651562D88; Thu, 17 Sep 2015 13:26:26 +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 52FBD62D5D; Thu, 17 Sep 2015 13:26:04 +0000 (UTC) Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1on0147.outbound.protection.outlook.com [157.56.110.147]) by lists.linaro.org (Postfix) with ESMTPS id 74DBC62D61 for <lng-odp@lists.linaro.org>; Thu, 17 Sep 2015 13:25:03 +0000 (UTC) Received: from BN3PR0301CA0079.namprd03.prod.outlook.com (10.160.152.175) by DM2PR03MB495.namprd03.prod.outlook.com (10.141.85.149) with Microsoft SMTP Server (TLS) id 15.1.268.17; Thu, 17 Sep 2015 13:25:01 +0000 Received: from BY2FFO11FD010.protection.gbl (2a01:111:f400:7c0c::171) by BN3PR0301CA0079.outlook.office365.com (2a01:111:e400:401e::47) with Microsoft SMTP Server (TLS) id 15.1.274.16 via Frontend Transport; Thu, 17 Sep 2015 13:25: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 BY2FFO11FD010.mail.protection.outlook.com (10.1.14.74) with Microsoft SMTP Server (TLS) id 15.1.274.4 via Frontend Transport; Thu, 17 Sep 2015 13:24:54 +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 t8HDOGbq005200; Thu, 17 Sep 2015 06:24:51 -0700 From: <hongbo.zhang@freescale.com> To: <lng-odp@lists.linaro.org> Date: Thu, 17 Sep 2015 21:10:10 +0800 Message-ID: <1442495411-12362-14-git-send-email-hongbo.zhang@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1442495411-12362-1-git-send-email-hongbo.zhang@freescale.com> References: <1442495411-12362-1-git-send-email-hongbo.zhang@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD010; 1:xbta8XMjCCirQX/XdXnGaLPvRTh188t8mCPcBbjmRBEGihoNIZM68Xhwt9ROSgVbi7VtRRN1VvTdVen7V4dl8G31yDlmphEzdi9hjShhccuILt2GlENSDdjjrGICOlTokPxHfKNZxzA2Y2DdG2dWCVRrBF0L8h0Np1Lj96KoCTxoszHI/nOo7lcLWvEelXNYeRkwOfd6CUS597yNKgn5qGjxKyUUxiySITF0qGEGRNmjUcVQ7nyah5MPfHQY/leSnnwlWexWGz9iFoCmF/Z/XQZZgFfjUGrwDfW+R8KEfDny61yPwrSFMnTzWqB1O5+cyIyeD9MPq7DK29IypR2Zgy1KE2ISiCJKX2rYBt+RTvT/1Rn6cJBqfY8GEeZEoPQuM+Gw2SktnGF6zVTrTU3paQ== X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(6806004)(2351001)(19580405001)(19580395003)(229853001)(5003940100001)(5007970100001)(85426001)(189998001)(5001960100002)(110136002)(69596002)(106466001)(76176999)(50986999)(104016003)(5001830100001)(62966003)(5001860100001)(33646002)(87936001)(50226001)(77156002)(46102003)(64706001)(92566002)(47776003)(81156007)(97736004)(4001540100001)(36756003)(68736005)(86152002)(2950100001)(48376002)(77096005)(105606002)(50466002)(86362001)(41533002)(217873001); DIR:OUT; SFP:1102; SCL:1; SRVR:DM2PR03MB495; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; DM2PR03MB495; 2:5KlQn3zB+tLrUMbg8JMxWnVhjdHftik0JXNeFdKJehDSv5rkmZ/9CkBkxf1QF26mw7Qv9Av5+PSXJ3/hZGPceSl1rA5nfo7Z2dU0N78RF0BYarJKL8OLti1uXrjrKYgA6m/geeWmnPsALJK876tGYY7f1pfXh3Tw3iY8nDB5Z2M=; 3:Sj0LszlDY/1qXrY1xe8DvwpDzhOn788gJGQXKGPXMDqjYvMjon/A1lu0K8SWB9vx8zsEbesDhVozmpXoQsN0gV2IqcBBUi4NQc8OY2meW8QTHnesfllLDdCb2nIHU/3nswnmdqRvLkIKryiFOjOzHqEqhl+6nQU8vXuJ/WCAvN9l3bnvLkv6M7hF+YqWWumKxWpVPZYZhKhdTGkKT8+EbsSjGOmy+yoHn3jlhUY1oxw=; 25:8sy7t/WvvuCTXdEFpXZY+lnyqWl4AB/YmUs8ixN9Wx49iiTovyzhirtF8R++h9Cz+GhIFiABNpDppBCRGPGxzSi2W4iIdu7eAtxb+vG5PzoNnDrxkNXTIpc2h2gZCixEz5Ysofs0JJ+vXd00pvPVM1K0I6SjRt3r2hHleTx5dFB0mJ6kiYpDILeKa1BvojnttvmIFmk3bTPT5BDcnv6seNNBG4GhX7SXdXPc90AO6dd0P6k1n25bellge5GXxzcXjqgMZtQNLS6GZec7M347tA== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR03MB495; X-Microsoft-Exchange-Diagnostics: 1; DM2PR03MB495; 20:eddyRDd1URtKB5+hPZGelwWQAxn1ZvS15bglwib0wQpiC6MwVVjQrmx7MkI3++FwlKMedKd1ElINNSYhOl0THooiLENk/r90Izj62C/qfM0fsceAEJfhEqVQ7EEx6j0Z2GCBE2PgmhHS1EpfgQnhtPFnz+x8GBZBup5eZiu6Dq45xBWytmlJSDJ68Ebngl+Qjr0ulukvXEraCeTunkBnnyx1MYYTYxbX3+B8i5oWYR9UANX+wnbA9CEBp89w7awdQyNmITp94SpfZP/CIVcH609HXrYTTvy5SFzfh00pomtLyRVFsiZ8Ic6KBNXT5nlsdN7BDtBKMDoAb78PSl4qfDbHfRb3sXQTOUJ7Ie3dpIU=; 4:dNjbcPlJgfur7Bl9a62bFK7yhSito0bAu1IDkfhbh5uExgmuhiXMmYUXJcZub74b0QQAfKKVUDie8mM2AEPe21ZCdQ+cPSUr6/IpDcHBYWDvmbcdk/4QJ4UQksECW96Fdh0kTehv3zacLt2okDgl86g9aLXYuWWS51jQXMSaZZKpQBUjdAUCaihfr85WBS20WTP/Og1sq8K33UO/neefXxO+rtfTTYz4FrSodFxwfc2JYN35gjzP4O7p9aUyLKBIPpphT6kIDEXn3b+ZZBb0VU9HCPmUEgzvH45AAB7/452xYQQwAq0Vgk5RuA2+iWNOGqOnIXB/q37I2os6+qr34A== X-Microsoft-Antispam-PRVS: <DM2PR03MB49592EBAA146F238F328D058E5A0@DM2PR03MB495.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(8121501046)(520078)(3002001); SRVR:DM2PR03MB495; BCL:0; PCL:0; RULEID:; SRVR:DM2PR03MB495; X-Forefront-PRVS: 07025866F6 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR03MB495; 23:FNJ7Tq3Iaziu3fBoZQoa8eezPJDlyKzePJZk21sqiu?= =?us-ascii?Q?r9M72GymOpDeD1Ffirpa4L3ZeVnfk4VgGzUVuIR8oWXd6vIfSwPdFQxbkrO8?= =?us-ascii?Q?qNaCvJDtwHZQb4sal6TpTD1ofQ7wzvY3y+Ru7OGhoAhjbQyz8nI+Yo/jxZ+1?= =?us-ascii?Q?sZwGDS6SFjZiymt7uJgisIEHk8OZV+xHpsAqK78U9Ewk+NNJfXwyE97ZSmLb?= =?us-ascii?Q?Agli7G1j0IHJPme+uq40bkcr/A3Snxvuocn6MOQjZcepWz/tDfiZMkuK7g5Y?= =?us-ascii?Q?p71E1077WiU2ctw0QcIYIcTG/NhFZLfHm0REcvwaiorBL6KmSjlMrPI37YPs?= =?us-ascii?Q?+NadSlwwgtyqbf3l2TKIVywZRoPyF5RrpNvV4pjlxfkjPI+EhRP44/Sb3qEC?= =?us-ascii?Q?Ij8SrbR16jgFPLDOScBZjPmKwti+PZRx3CBjUn/2vpfxmyjURX1qPp6PnPes?= =?us-ascii?Q?kWepoDOd7B9929HWahRduDZX+88O8lWVPa57s6imeUwMRSGagnJxbMl39KHO?= =?us-ascii?Q?0ykdf2qPYlwoDwY1LyZZ/PVPaCslzL/BSvZkhHCnZM/yA/1hKXr4Bt2Jlct5?= =?us-ascii?Q?lTXOqRa3RODXZcTZDq908u8i0MoKilThV512CWyra+J+stD15wpcqOqjJeRs?= =?us-ascii?Q?jogVsq1XopFkRFryshn65wSLHeRQ7TcQvKrOZKJQD08hDabw5Ot01Rnemkkd?= =?us-ascii?Q?0pCfSq5u4GpCIbSLn8YuETYQG3hXgvu5bH90xf09qLrSbTH9JIX3GdCS766h?= =?us-ascii?Q?jJGo6x6jwlKHV0l53rpSImSG3D+mn0qgnPZlin31cckD5VYSeNQsUAxx4+Cb?= =?us-ascii?Q?KpWHZE7Z3SHpgviiA6cH62xU7qVdgS9azPHR7AFvsX6CNQA6xxUqT9J5vO+D?= =?us-ascii?Q?LHOx6mFg0zYPA5i3D9wtde2Y6GyjwHJSy2UtcD8cUauFp8ti1Rypvll1VPLO?= =?us-ascii?Q?5jVdfTRuKfNJUUGlkPv0W/9/5hBi78yokw4N1OEjphfulZLo08osH4ACRpTb?= =?us-ascii?Q?+2ghwxyE2G3ZrI7Tw/QBzD5LesW7guPlFFFcd4XX6Zsb4ZoEBtrKPWQoqrYU?= =?us-ascii?Q?JYOj7pW4zSkRADiulqqgogK1miG1pwBoO0zDJeGDXDvqG49ECM+ZqyFl0lO3?= =?us-ascii?Q?eWa9QqQaUgNic6zXaQTy3hThshZ63ykXUyFT5FVh4OAErIrd0xLoL19k4D+0?= =?us-ascii?Q?kdHLYxv0hqSvOGbgAdXXimxxnP2nWN2ImhEeAwjS85QVy5VFQR4L71IAlpr4?= =?us-ascii?Q?EKeNNOascHbqFxdeCNeqJi2QG2dXBeDMDlpWfL?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR03MB495; 5:qMpCwuQjZ/pnzEb96IRrnc9Jq9bUU/JPrN3WMWVnIlFNX1UrCJMUwzX/zzhQKGlV5rV9XZYA5HXpskDn0Ytqvurp1K8mYzuOf47oCOVEi0Nz9ghwHMo13z4pFDH8f0OBI/u7wfPYDblzWRh39bSafw==; 24:hTalmCxJs1LhMsx8zHXdqxfutJNR8ItG+PU/xkG/pyBUIJSeWOg28mXFlF0X2nQAficr6mXTqwsgHCAEWpi+rbEIRaTMLWhiNVn6IE42TLY=; 20:WZnVvT7/PI7Puowu4ne1NSCEVO0jgMd4kIc3y1DzslM4T0SvsfEznPNKMJ4JmP/QEK/YpYeXIWCo0e7Wq+IUVA== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Sep 2015 13:24:54.7064 (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: DM2PR03MB495 X-Topics: patch Cc: petri.savolainen@nokia.com, stuart.haslam@arm.com Subject: [lng-odp] [API NEXT PATCH v6 13/14] linux-generic: update CPU Hz calling functions 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.176 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/platform/linux-generic/arch/linux/odp_time_cycles.c b/platform/linux-generic/arch/linux/odp_time_cycles.c index 035afdf..a4ade61 100644 --- a/platform/linux-generic/arch/linux/odp_time_cycles.c +++ b/platform/linux-generic/arch/linux/odp_time_cycles.c @@ -27,7 +27,7 @@ uint64_t odp_time_cycles(void) if (ret != 0) ODP_ABORT("clock_gettime failed\n"); - hz = odp_cpu_hz(); + hz = odp_cpu_hz_max(); sec = (uint64_t) time.tv_sec; ns = (uint64_t) time.tv_nsec; diff --git a/platform/linux-generic/odp_time.c b/platform/linux-generic/odp_time.c index 11e852a..162b4cb 100644 --- a/platform/linux-generic/odp_time.c +++ b/platform/linux-generic/odp_time.c @@ -22,7 +22,7 @@ uint64_t odp_time_diff_cycles(uint64_t t1, uint64_t t2) uint64_t odp_time_cycles_to_ns(uint64_t cycles) { - uint64_t hz = odp_cpu_hz(); + uint64_t hz = odp_cpu_hz_max(); if (cycles > (UINT64_MAX / GIGA)) return (cycles/hz)*GIGA; @@ -33,7 +33,7 @@ uint64_t odp_time_cycles_to_ns(uint64_t cycles) uint64_t odp_time_ns_to_cycles(uint64_t ns) { - uint64_t hz = odp_cpu_hz(); + uint64_t hz = odp_cpu_hz_max(); if (ns > (UINT64_MAX / hz)) return (ns/GIGA)*hz;