From patchwork Thu Dec 17 10:47:09 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: 58543 Delivered-To: patch@linaro.org Received: by 10.112.89.199 with SMTP id bq7csp283612lbb; Thu, 17 Dec 2015 02:51:18 -0800 (PST) X-Received: by 10.55.77.17 with SMTP id a17mr65987759qkb.40.1450349477982; Thu, 17 Dec 2015 02:51:17 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id g205si10846555qkb.9.2015.12.17.02.51.17; Thu, 17 Dec 2015 02:51:17 -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 9C5D9615BF; Thu, 17 Dec 2015 10:51:17 +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 CB7BA615EF; Thu, 17 Dec 2015 10:48:58 +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 E4DD0615BF; Thu, 17 Dec 2015 10:48:53 +0000 (UTC) Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0147.outbound.protection.outlook.com [65.55.169.147]) by lists.linaro.org (Postfix) with ESMTPS id 9765E615BF for ; Thu, 17 Dec 2015 10:47:54 +0000 (UTC) Received: from DM2PR03CA0007.namprd03.prod.outlook.com (10.141.96.17) by BLUPR03MB602.namprd03.prod.outlook.com (10.255.124.39) with Microsoft SMTP Server (TLS) id 15.1.337.19; Thu, 17 Dec 2015 10:47:52 +0000 Received: from BN1AFFO11FD048.protection.gbl (2a01:111:f400:7c10::156) by DM2PR03CA0007.outlook.office365.com (2a01:111:e400:2428::17) with Microsoft SMTP Server (TLS) id 15.1.361.13 via Frontend Transport; Thu, 17 Dec 2015 10:47:52 +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 BN1AFFO11FD048.mail.protection.outlook.com (10.58.53.63) with Microsoft SMTP Server (TLS) id 15.1.355.15 via Frontend Transport; Thu, 17 Dec 2015 10:47:51 +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 tBHAlK6B003857; Thu, 17 Dec 2015 03:47:49 -0700 From: To: Date: Thu, 17 Dec 2015 18:47:09 +0800 Message-ID: <1450349234-26340-6-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; BN1AFFO11FD048; 1:u3v+fWhIYw2jSZbcjJnph38Zl7P5Nl/VsQyDi5tsm7Sh8RSI2KL7WGzR6SWQnFpvN9AIiUPC6Z/F7N4zlU1thcKzHqvAqVKfnlgGp+HvybBmgqB4r/GFqEW4xIy5+bnHsGWNOJi19pZHMGFDJruEdRdQIslc6NZm8uXHWbANY8Bkd59GXz1zmE7gfAzbjBSYhDnenNroQCraOZ33FcLxCyTVCwMGaQ28HNVYRMnVYAtapzjMiHnHIlS/qfmxpwYD8wlaWrhu8gbLMwoDODa30UqyXahje1eiWLKx2TyGCO0dK+f8WxhLU91Xi/WnlrkzY0hd7CX00BwEeqMwXQXeipM5Z7PXI5r9xh2SEFFZdhg6rw8TiGHV2eIZcd/bhCun X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(448002)(199003)(189002)(77096005)(106466001)(50986999)(19580405001)(86152002)(575784001)(48376002)(86362001)(87936001)(1220700001)(50226001)(11100500001)(229853001)(92566002)(19580395003)(2950100001)(5003940100001)(110136002)(2351001)(36756003)(85326001)(81156007)(189998001)(33646002)(47776003)(97736004)(50466002)(76176999)(5001960100002)(5008740100001)(6806005)(586003)(104016004)(1096002); DIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR03MB602; 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; BLUPR03MB602; 2:9tM1BJ4Je6mMYA6YiCJPkNnoAomOehpfTME+f5Fo9NJB5JJQyQEc34IfEK89HOFRYF4YEVs5JTCjygTWNi6jqgpbA5/JQ1Y9TsprPi3MViPabTle61iDoP/0p4XyzPD9dBX0VHc3Q318gmYe4szFNQ==; 3:Zfg9tmntI2JzEVfYSgZbOymeLQvgFP+gcTsNueq6HRufIxSMgedyRR9se3Qbi1x/FTaMa9+gcGMC9lex6qIyjzs/XBeAjqr1BKYm7m5v9dRB77DOKtz37JKMdjChWBwx0IZusrTllx/TWHGvSaH963SgfNC+N5OZce5jCVWVuPdDFpPHRklRCwsebdA1O7bBKgEY0a1Z2yIYElBRjgSjL5ZCDM5oEf7gmA33PmO5MAQ=; 25:xR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CokssgOa/EHEa/gSDZYbKvexD6u/ouOohztLj X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(10201501046)(3002001); SRVR:BLUPR03MB602; BCL:0; PCL:0; RULEID:; SRVR:BLUPR03MB602; X-Forefront-PRVS: 07935ACF08 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR03MB602; 23:GX+S+hIOIPzKIt9mWYf7DsRODgFWRm2FzS+V/67CXN?= =?us-ascii?Q?fQoRglpXBp+FmV82cdO0eHQf3+Qf9O1dTtE1QrSTC+bvXyG2L5m31iZn45c7?= =?us-ascii?Q?tvYZIcHVx50TX3Yltp55g2OQwSdzd8TwfEQeLW25ykGMkmpNe2q2FY92kVPw?= =?us-ascii?Q?KcQQrwP0vpYrqPVMA3hP5EWWBglaJxJQaegaP9oDSFUrITl7lCklAp7qa9R4?= =?us-ascii?Q?j5Vsy169i1hOF7LDr+doV/FDK5je/zDP+RIx5+OXI7gLdXBd1mt6YTqKMJCS?= =?us-ascii?Q?K8Uj18RP0EDulU2MzF4FOKIQSySqZeEntRINXgyIUnUeIqzEqxIQ+aJWW7ku?= =?us-ascii?Q?HEv6mxVoaUX3/LTg0YaGeJIE1qUgUMhGHkURli4/E2qr64iOJ6GhPYd2nZAy?= =?us-ascii?Q?XNyCLyDj7nMHr8jcAdEeLdgsxATuwKBpwV16R6ZLSeotxtG3fKy9TWpdfOvF?= =?us-ascii?Q?P+iyAWqRhoyjfNJsZKAWmaYdzmjLZPn1H6/OKKFNCu03a7Y1pB0nrQ31kdoI?= =?us-ascii?Q?g23Kh9STLzNwTIg2FsCW2Sy3/cT/df/g74kLhxrwUxtZTnm/i6cOxZtXrMTA?= =?us-ascii?Q?xtA/mtuOPy47toC7eLlRdfJHNCBVp4J4srEXCuihBqorwUK+Qa0c7XaWFTkV?= =?us-ascii?Q?G77RQxFOCyJaZHMNcmZwCJoTegtfHc3L1IoaZg1XxC/eB1K+2k5pYOPr2GNs?= =?us-ascii?Q?a/4Jrzub6catX5Veg22EcO5a783keFkSEjplZHyaS5mNOubfC4r8tzl5IyHy?= =?us-ascii?Q?VALRoGyZKL/zs91A4EvTBkj7mhzvW+71KEKEEPtz9CIBh3TfdCTnuOoHWxtI?= =?us-ascii?Q?qwsFYHS48AUbOyYI3OBnaMcRDHio6GaUcmJOXCDscDM9JAn0Httu7bRiT1sa?= =?us-ascii?Q?2wd1FEYAzVRKmC84kIvJbfvr/Ziwi8U1lkl4NJZ7Z7tbCeM6HuDtVJ2nCuii?= =?us-ascii?Q?S1DF/IkLpDigcmaTPXCdYvRlOccpd5p5R7LS1zd+y5nZS8x0HRPd8t1ZTUjz?= =?us-ascii?Q?KR4VVndN2qdj7Pi6kXdylfotRAshHDZpeuz0VgWwa9wg=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB602; 5:RrGDxokdHn+xUjI3vFQkCXZvw+TazjOXfQcMpG9YHP4dMoJQpQcXIROnv0iB81AwPG2ZoR38H+oQdSsIFnCyrOcMSBa1yytlwK22ZbSwjY8d3hNGqNkMFSG/adUTjjwVv5m2O4nktd5CPibMO4gFiw==; 24:QMrc3ahKpb5CI7J/YURev00dkNTBYjDaEPwXMloI7bkGvCkHziaX7wezAcFGZ1i1qQFku1fwOtOhW57zDUA06O/fmkc7ZpDW1nWrgPViJWg= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Dec 2015 10:47:51.8596 (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: BLUPR03MB602 X-Topics: patch Subject: [lng-odp] [PATCH API-NEXT 05/10] example: remove reference of odp_cpu_hz_max() 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 will be moved as linux-generic internal interfaces, so they should not be referenced here. Signed-off-by: Hongbo Zhang --- example/classifier/odp_classifier.c | 4 +--- example/generator/odp_generator.c | 3 +-- example/ipsec/odp_ipsec.c | 3 +-- example/packet/odp_pktio.c | 3 +-- example/timer/odp_timer_test.c | 2 -- 5 files changed, 4 insertions(+), 11 deletions(-) diff --git a/example/classifier/odp_classifier.c b/example/classifier/odp_classifier.c index 0da07e7..a4cba0d 100644 --- a/example/classifier/odp_classifier.c +++ b/example/classifier/odp_classifier.c @@ -881,13 +881,11 @@ static void print_info(char *progname, appl_args_t *appl_args) "---------------\n" "ODP API version: %s\n" "CPU model: %s\n" - "CPU freq (hz): %"PRIu64"\n" "Cache line size: %i\n" "CPU count: %i\n" "\n", odp_version_api_str(), odp_cpu_model_str(), - odp_cpu_hz_max(), odp_sys_cache_line_size(), - odp_cpu_count()); + odp_sys_cache_line_size(), odp_cpu_count()); printf("Running ODP appl: \"%s\"\n" "-----------------\n" diff --git a/example/generator/odp_generator.c b/example/generator/odp_generator.c index 2de530d..8134f39 100644 --- a/example/generator/odp_generator.c +++ b/example/generator/odp_generator.c @@ -1059,11 +1059,10 @@ static void print_info(char *progname, appl_args_t *appl_args) "---------------\n" "ODP API version: %s\n" "CPU model: %s\n" - "CPU freq (hz): %"PRIu64"\n" "Cache line size: %i\n" "CPU count: %i\n" "\n", - odp_version_api_str(), odp_cpu_model_str(), odp_cpu_hz_max(), + odp_version_api_str(), odp_cpu_model_str(), odp_sys_cache_line_size(), odp_cpu_count()); printf("Running ODP appl: \"%s\"\n" diff --git a/example/ipsec/odp_ipsec.c b/example/ipsec/odp_ipsec.c index d784c31..7b08853 100644 --- a/example/ipsec/odp_ipsec.c +++ b/example/ipsec/odp_ipsec.c @@ -1507,11 +1507,10 @@ static void print_info(char *progname, appl_args_t *appl_args) "---------------\n" "ODP API version: %s\n" "CPU model: %s\n" - "CPU freq (hz): %"PRIu64"\n" "Cache line size: %i\n" "CPU count: %i\n" "\n", - odp_version_api_str(), odp_cpu_model_str(), odp_cpu_hz_max(), + odp_version_api_str(), odp_cpu_model_str(), odp_sys_cache_line_size(), odp_cpu_count()); printf("Running ODP appl: \"%s\"\n" diff --git a/example/packet/odp_pktio.c b/example/packet/odp_pktio.c index 93c38f5..706e566 100644 --- a/example/packet/odp_pktio.c +++ b/example/packet/odp_pktio.c @@ -649,11 +649,10 @@ static void print_info(char *progname, appl_args_t *appl_args) "---------------\n" "ODP API version: %s\n" "CPU model: %s\n" - "CPU freq (hz): %"PRIu64"\n" "Cache line size: %i\n" "CPU count: %i\n" "\n", - odp_version_api_str(), odp_cpu_model_str(), odp_cpu_hz_max(), + odp_version_api_str(), odp_cpu_model_str(), odp_sys_cache_line_size(), odp_cpu_count()); printf("Running ODP appl: \"%s\"\n" diff --git a/example/timer/odp_timer_test.c b/example/timer/odp_timer_test.c index 0ec73b1..7b1c7bf 100644 --- a/example/timer/odp_timer_test.c +++ b/example/timer/odp_timer_test.c @@ -353,7 +353,6 @@ int main(int argc, char *argv[]) printf("---------------\n"); printf("ODP API version: %s\n", odp_version_api_str()); printf("CPU model: %s\n", odp_cpu_model_str()); - printf("CPU freq (hz): %"PRIu64"\n", odp_cpu_hz_max()); printf("Cache line size: %i\n", odp_sys_cache_line_size()); printf("Max CPU count: %i\n", odp_cpu_count()); @@ -449,7 +448,6 @@ int main(int argc, char *argv[]) return -1; } - printf("CPU freq %"PRIu64" Hz\n", odp_cpu_hz_max()); printf("Timer ticks vs nanoseconds:\n"); ns = 0; tick = odp_timer_ns_to_tick(gbls->tp, ns);