From patchwork Fri Dec 25 08:29:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hongbo Zhang X-Patchwork-Id: 58993 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp213534lbb; Fri, 25 Dec 2015 00:32:07 -0800 (PST) X-Received: by 10.107.169.210 with SMTP id f79mr2400848ioj.92.1451032327703; Fri, 25 Dec 2015 00:32:07 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id x3si18118534igl.54.2015.12.25.00.32.07; Fri, 25 Dec 2015 00:32:07 -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; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id D454B616BD; Fri, 25 Dec 2015 08:32:06 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=V0hAw5BY; dkim-adsp=none (unprotected policy); dkim-atps=neutral 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=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,T_DKIM_INVALID,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 44A38616B5; Fri, 25 Dec 2015 08:31:01 +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 6003E6166B; Fri, 25 Dec 2015 08:30:55 +0000 (UTC) Received: from mail-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) by lists.linaro.org (Postfix) with ESMTPS id 2115B6166B for ; Fri, 25 Dec 2015 08:30:22 +0000 (UTC) Received: by mail-pa0-f48.google.com with SMTP id jx14so131969726pad.2 for ; Fri, 25 Dec 2015 00:30:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=NbjAYFg+H+d7EQQBKYCgCnKn0cTmaqSx4pne/YlCywM=; b=V0hAw5BY82HIEDwKNwwiqoqLWZuuq86LHtDogI+gzrPoIaA/GDiUvw2tRFoJR2YGKp OYAl229BgSuQnUSydvcW2/93zLY5LYZHrDlp5Zu8bphB774JSSNX26ZXx/d0i33aRKWs JcO5tw4HO432JMUurNpD6FG8gcbdGkyzYkfIs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=NbjAYFg+H+d7EQQBKYCgCnKn0cTmaqSx4pne/YlCywM=; b=eFxZwoNFJx9n/eZXKGqIi0tTHi6tkwMQoKRvzHa8H/oLp9SZiUdhc9o/wiyDg7M1ak qHcBjG/HhNSd5qVaVFdHVUtLEGxbh2lK7jKQsgYyyA7oJnXG+XWa4RN3NMoFPDTk1W8P 8U/3uqffWLTEr0vL9cWRDrNKasgqX/X6bawDLcyAw10n2PJ1uAXwi1AqM6FB91aQir3E XvFnrNGedvgWOY29E3hGca1QHeOVieEoWLeFkUM3RQuiobgp0T1S8ljfDCYiujpXjCrw x38V2X0ECAnn5Uv3AVbzViscve5M3NEFrUxq0K/MkGuBWQUiyDrbpmZYewtKnyyLLJ0t D4SA== X-Gm-Message-State: ALoCoQlvzK4v1xjHyj0Z2TxEmnG0w0j7bAa+1pxSLhXXNA4C9J8paIncdLA24wQ3PXjc2D+kKm3ffGEyDHyZefiSzGbyyP2rUw== X-Received: by 10.66.150.228 with SMTP id ul4mr57589266pab.15.1451032221470; Fri, 25 Dec 2015 00:30:21 -0800 (PST) Received: from ubuntu1504.ap.freescale.net (gate-zmy3.freescale.com. [192.88.167.1]) by smtp.gmail.com with ESMTPSA id p80sm33503452pfi.12.2015.12.25.00.30.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 25 Dec 2015 00:30:20 -0800 (PST) From: hongbo.zhang@linaro.org To: lng-odp@lists.linaro.org Date: Fri, 25 Dec 2015 16:29:57 +0800 Message-Id: <1451032201-19954-4-git-send-email-hongbo.zhang@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1451032201-19954-1-git-send-email-hongbo.zhang@linaro.org> References: <1451032201-19954-1-git-send-email-hongbo.zhang@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH API-NEXT 3/7] linux-generic: sysinfo: rename odp_cpu_hz_current with odp_ prefix 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: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Hongbo Zhang This function will be moved to their own platform specific files too, it is better to be named with a odp_ prefix. Signed-off-by: Hongbo Zhang --- platform/linux-generic/odp_system_info.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/platform/linux-generic/odp_system_info.c b/platform/linux-generic/odp_system_info.c index a829b01..449e500 100644 --- a/platform/linux-generic/odp_system_info.c +++ b/platform/linux-generic/odp_system_info.c @@ -136,7 +136,7 @@ static int odp_cpuinfo_parser(FILE *file, odp_system_info_t *sysinfo) return 0; } -static uint64_t arch_cpu_hz_current(int id) +static uint64_t odp_cpu_hz_current(int id) { char str[1024]; FILE *file; @@ -180,7 +180,7 @@ odp_system_info_t *sysinfo ODP_UNUSED) return 0; } -static uint64_t arch_cpu_hz_current(int id ODP_UNUSED) +static uint64_t odp_cpu_hz_current(int id ODP_UNUSED) { return -1; } @@ -227,7 +227,7 @@ static int odp_cpuinfo_parser(FILE *file, odp_system_info_t *sysinfo) return 0; } -static uint64_t arch_cpu_hz_current(int id ODP_UNUSED) +static uint64_t odp_cpu_hz_current(int id ODP_UNUSED) { return -1; } @@ -273,7 +273,7 @@ static int odp_cpuinfo_parser(FILE *file, odp_system_info_t *sysinfo) return 0; } -static uint64_t arch_cpu_hz_current(int id ODP_UNUSED) +static uint64_t odp_cpu_hz_current(int id ODP_UNUSED) { return -1; } @@ -394,12 +394,12 @@ uint64_t odp_cpu_hz(void) { int id = sched_getcpu(); - return arch_cpu_hz_current(id); + return odp_cpu_hz_current(id); } uint64_t odp_cpu_hz_id(int id) { - return arch_cpu_hz_current(id); + return odp_cpu_hz_current(id); } uint64_t odp_cpu_hz_max(void)