Message ID | 1444734798-29063-14-git-send-email-hongbo.zhang@freescale.com |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDPILVOKSELBBXW36OYAKGQEC4J5OSY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by patches.linaro.org (Postfix) with ESMTPS id D289520490 for <linaro@patches.linaro.org>; Tue, 13 Oct 2015 11:41:19 +0000 (UTC) Received: by lbbti1 with SMTP id ti1sf7926032lbb.3 for <linaro@patches.linaro.org>; Tue, 13 Oct 2015 04:41:18 -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=YhGnY7ZfiOK8fOiiZ9ms/4FMx6eTVOE5mCOfhb+xOlQ=; b=eFFziZ9b09PVA2c6QrI0grXijy1T/qmisk/m7gHW0oOf/DLMueNeRjxE2HQsaSf7Ir i7x4A7FeDxOJUE2dxo6ADUlnTW0n/LZu6kBdoYbTpkOaNpvvezRozn25tkj7Pcrk5cqs ln7cZvhqw2c6LcSD6wa/GwG1kOqX7RFcZrF/roJT4IMgAU6xhbk/k1wl2xqjut2eVRyQ ACIqfBMtEc/L0h8rgnHIWKXkFE8xSz2xDLh6xtP+kTmFgZx8Puus5DcC5r6PjZ6/QpTU Qkg9CsN5Tq8omnwaRrH/9gm8S11sC9t7tx9Eicf5b8/Na9Zedrl14IYGfM9T+F3T5owi Hqkg== X-Gm-Message-State: ALoCoQnOG14nRN7uBJ8lJBfwVuD5XS52v22c4BfzxK2rSuDKGxyBMhMNPacemoeurZHhHMajaIbj X-Received: by 10.112.16.229 with SMTP id j5mr2115076lbd.6.1444736478818; Tue, 13 Oct 2015 04:41:18 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.79.85 with SMTP id d82ls585870lfb.47.gmail; Tue, 13 Oct 2015 04:41:18 -0700 (PDT) X-Received: by 10.112.156.193 with SMTP id wg1mr14784321lbb.24.1444736478702; Tue, 13 Oct 2015 04:41:18 -0700 (PDT) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id sm5si1892037lbb.88.2015.10.13.04.41.18 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Oct 2015 04:41:18 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by lbbk10 with SMTP id k10so16447348lbb.0 for <patchwork-forward@linaro.org>; Tue, 13 Oct 2015 04:41:18 -0700 (PDT) X-Received: by 10.25.19.97 with SMTP id j94mr222238lfi.106.1444736477995; Tue, 13 Oct 2015 04:41:17 -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 w3csp2077679lbq; Tue, 13 Oct 2015 04:41:16 -0700 (PDT) X-Received: by 10.140.152.85 with SMTP id 82mr42364041qhy.8.1444736476856; Tue, 13 Oct 2015 04:41:16 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 198si2431384qhh.8.2015.10.13.04.41.16; Tue, 13 Oct 2015 04:41:16 -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 6F76261A22; Tue, 13 Oct 2015 11:41:16 +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 93FBA61A52; Tue, 13 Oct 2015 11:34:00 +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 C1C1161971; Tue, 13 Oct 2015 11:33:50 +0000 (UTC) Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bbn0108.outbound.protection.outlook.com [157.56.111.108]) by lists.linaro.org (Postfix) with ESMTPS id 1D35861A52 for <lng-odp@lists.linaro.org>; Tue, 13 Oct 2015 11:32:05 +0000 (UTC) Received: from BLUPR0301CA0004.namprd03.prod.outlook.com (10.162.113.142) by CY1PR0301MB1273.namprd03.prod.outlook.com (10.161.214.21) with Microsoft SMTP Server (TLS) id 15.1.300.14; Tue, 13 Oct 2015 11:32:03 +0000 Received: from BY2FFO11FD034.protection.gbl (2a01:111:f400:7c0c::191) by BLUPR0301CA0004.outlook.office365.com (2a01:111:e400:5259::14) with Microsoft SMTP Server (TLS) id 15.1.293.16 via Frontend Transport; Tue, 13 Oct 2015 11:32:03 +0000 Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD034.mail.protection.outlook.com (10.1.14.219) with Microsoft SMTP Server (TLS) id 15.1.293.9 via Frontend Transport; Tue, 13 Oct 2015 11:32:03 +0000 Received: from hongbo.ap.freescale.net (hongbo.ap.freescale.net [10.193.20.96]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id t9DBVOFv009638; Tue, 13 Oct 2015 04:32:00 -0700 From: <hongbo.zhang@freescale.com> To: <lng-odp@lists.linaro.org> Date: Tue, 13 Oct 2015 19:13:17 +0800 Message-ID: <1444734798-29063-14-git-send-email-hongbo.zhang@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1444734798-29063-1-git-send-email-hongbo.zhang@freescale.com> References: <1444734798-29063-1-git-send-email-hongbo.zhang@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD034; 1:9a6lEx0BIgRllUI8n0BNAntCwKNYt6AIKlLZcNAh3N21t8Yx3witu6buvlbqgOeL+PvuIQ/nK2L1oxaPBhuzcN/Gk3I4u8Y4xN1SNbNIXUowpysBk2jJG3ucTCeR/1wD8mxP+q32HIxHo3kBJUHTNY/V7lhw5FsdizKKRB8Dh2ZlA0Jy/nbxgIMrnBR7wVomU19juCwnu3kz3y8By7PaAdazJ7lBTd6yec1ezlhIFiAKIXIBVUWgO1D5Lm/dNcJoD9a/bsvuye5ywFiDjpH5ewG3iJfmbgzkXMpiNfilSbZTrKgbFI68PtxFA9k6tvkgsoQ8onmLps8xgk+t9MygdIPRxXboWFA58hHjSc9QVe8/DcCFagkzhAcpQ0+QOJGHspCICAzBqZLiXRTFcaMCbQ== X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(87936001)(46102003)(77096005)(92566002)(48376002)(86152002)(50466002)(105606002)(106466001)(5008740100001)(33646002)(97736004)(2950100001)(81156007)(50226001)(110136002)(5001960100002)(189998001)(86362001)(5007970100001)(5003940100001)(229853001)(2351001)(50986999)(85426001)(76176999)(19580395003)(11100500001)(19580405001)(36756003)(47776003)(64706001)(6806005)(104016004)(41533002)(217873001); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR0301MB1273; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1273; 2:O4sTQQkDIfcfYkoLUt91U8AY1T/tblvaCcFBVwmbfkCRErM5NHA/pOFFkvZ+tqquOegc/hb7aifItx6ZVZFyoidMXH1A3A91Kp8wYOjb90EOsJbHSE22L/DmCvlCqjjBNyJPI8LUABWT8C+WjXOl/40cw2FfLVjQDBFe9ptoBPU=; 3:epI/X7l24MP1SsUtJIdkLp+ARFNtyx4eIGBR82C8VVqXixBdjen/Ose3la0cwwVOD+cS0OpRgQGhzKVu+KMOB6uR4a9egQhRaZBMCzoq2Nwhb6h73hBpqBQTcPXHTShAxx9H8cs9j8LW6ZlgQFdBa9MJng0abQ8sJi7wsIC3+I8w60EV6T6v8PI1Aa+ekYvysMQcfdQ6u7IDxG0L2z/SS9CvEfQjbcH56EIJeKu+AFk=; 25:HVg1NvpFPKGdy+SPvCCoJDDJxtq9YKjBQK1XXTQIC6oTm9nijNBQvyTR3ZfTjyQWnaxR80L9cNz7+SFh+5gJK7TMjKDaI1rQbIDrhQ92mRiXVqoJ7LfPGLwLhOqKd9l9Q5Np9XK53lNJbuZNrNCTX5w433OWcPhPkHZnOSziPCBHCVqV8RXe2Z+KhF0xeGp8aoKpBiRNTsRMfMbhG65/SwgQ7a/2izvhO2HK9spo5qDhpku/8npBwud39GYHmt1It/Mubw+ImXH6dWh5YI5S2Q== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB1273; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1273; 20:bqB4UjgoJ/1maaiUqv1zDHoawDtaF1n3z+U8STGk8FIu8HnFoZI4yuzUTclRl0y0AZe0+Xd1qHPgwNTnaPdWgxGgcm9H70H7f+1YMvNWxbxYvO+J0bd5LbFhjxlFYrMb8EewiWlt40R9bdRqWlJMGcluC7OxwsqzJMeVacT7LO7xdJwA4Y4zLp+WFPrk5EhhLR5yNc2JWAStbBpi6Qvkn+wgWE1s9NGlQoeDh8HGViOY/DTBHH6Z3sT0DGQxbVm1zMvcLb9HuEmC9TalDbdxlkC1g48dRmuIoj4/Iqq2WrfukiA7vMD8I28XDIrO177VHe7RBlOsb0q+vg2y+Rvz6kv1MHQp4SjbuUcVT0hN+7Q=; 4:3GE7Gkzm71a+B5+/7RQtokbfWys0Fh/YKgH43ww6LED9ctgL9d3iivZeFtZtucOWbjv+cG0SjspvNrH2ToDG3OYhVru+P3qHt9Z6ZLpsu1cwaH4D5Bsr6TF+8T7U4fx9mLFanmwxbnmXXQt+CbE1jsNXAT1XUHORGTDXNffHTWmMcWI7jrGc8Gf1IRfMfpfLtHyk2avXP2vsuM97MmJ41SG7MLq6vGK4o8SSfY3t9uCpg3uqYPWuKY/XYACV9HIWwqtqp777DVkhotY0EzaKrZ/Vm3SqKNmlLlH5T5cJf03VnGxtqKQRoA9oYW/tDeTJHu4IDq/WkaxQcDRbdaOx83MtlBxuEBfe/2AijCDWFLE= X-Microsoft-Antispam-PRVS: <CY1PR0301MB1273649755C770888C5465048E300@CY1PR0301MB1273.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(520078)(3002001); SRVR:CY1PR0301MB1273; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0301MB1273; X-Forefront-PRVS: 07283408BE X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB1273; 23:K6F+lmY/THiFGqN+I2Moz/fEH//jyOamVzIM6VV?= =?us-ascii?Q?YYRRbRLnb2nRjcSIyuyxtjRFuZ2KzelphgkzjwJF8JLFlkXK32Ks97CEnvzK?= =?us-ascii?Q?abSbgEheUU33OpTCXJE9zBayIw5H1JhVS0DFajak891N9AhGygKmi/f3JWOA?=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iK0a5am4Ni0Fp?= =?us-ascii?Q?IPO5CqlOigzkdJMnq5vdnyGaq5qZ9Q1yxxzRoNFzj6tkfPEcpow/hFWQX1Tl?= =?us-ascii?Q?UYk7PS83qpQvHOm6Jx9xyGGiSyAQygU4p?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1273; 5:D6c9JBHk0DVa8p2D+rAz1N+ndyzXO8geNQKkn+OclLdsnvNEq/a0QypocF+OGpqLYHt9Xqvu6+HSopss8TXVxM+kC0drACDWtOoXgonMW7KyxDtxu2R+Eunmn33EhsnKALniG3RskK+Egx/6cd8Vzw==; 24:L81ml+OHpJVhohgUw/qcnoDyiz/3NmcK9hb2ZWboITMjYOLitlirYZTXaTI2Nlzx9G1dLg7N/2Ac0fNue7uO+tvItpTM00kDls0omtfuRj4=; 20:zjr+eFU7++San0v3A7FoGe1zA6PyTQe3jI5TLNbDazmn+lRqa6W1QhrKn/dBLQAvKlktt8FN2tKwpFyCggn0bA== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Oct 2015 11:32:03.1082 (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: CY1PR0301MB1273 X-Topics: patch Cc: petri.savolainen@nokia.com, stuart.haslam@arm.com Subject: [lng-odp] [API NEXT PATCH v7 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.171 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_cpu_cycles.c b/platform/linux-generic/arch/linux/odp_cpu_cycles.c index b07bfda..0a41727 100644 --- a/platform/linux-generic/arch/linux/odp_cpu_cycles.c +++ b/platform/linux-generic/arch/linux/odp_cpu_cycles.c @@ -27,7 +27,7 @@ uint64_t odp_cpu_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 fde231a..2c532e9 100644 --- a/platform/linux-generic/odp_time.c +++ b/platform/linux-generic/odp_time.c @@ -28,7 +28,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; @@ -39,7 +39,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;