From patchwork Tue Dec 29 10:31:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hongbo Zhang X-Patchwork-Id: 59043 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp2196598lbb; Tue, 29 Dec 2015 02:34:17 -0800 (PST) X-Received: by 10.55.75.137 with SMTP id y131mr74487012qka.69.1451385257641; Tue, 29 Dec 2015 02:34:17 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id j6si69554382qgd.14.2015.12.29.02.34.17; Tue, 29 Dec 2015 02:34: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; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 35D6E611F4; Tue, 29 Dec 2015 10:34:17 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=HPVYUUAc; 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 950FD61674; Tue, 29 Dec 2015 10:32:55 +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 4108F61674; Tue, 29 Dec 2015 10:32:52 +0000 (UTC) Received: from mail-pf0-f169.google.com (mail-pf0-f169.google.com [209.85.192.169]) by lists.linaro.org (Postfix) with ESMTPS id 960BF616C1 for ; Tue, 29 Dec 2015 10:31:40 +0000 (UTC) Received: by mail-pf0-f169.google.com with SMTP id 78so125425516pfw.2 for ; Tue, 29 Dec 2015 02:31:40 -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=HPVYUUAchHGGsczwg8NvwQHfw5mtK9ZHB93fH0eCPP0vSZWoqjxamE4pBLUXPoL1vV 4nb8I4aPduLgwWHHTuVTro5Bxn833Ky/H4tZvEEtI9SRqVgXVs9PGu2SC9Hqlzoe0BD9 SS7f7WTDcbWyT4M4ik50N99F1nwpIQbyW9XWM= 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=kuRgOhK+mqGloQq0j760dNdyHdC/UUZExcmVGNJm8e2tGVUuf7S9sMr715Y96UxriD m6ZFUca4bxdz9URZvWB9ZizdagIk3XIAtwF9Wz52+3gIVsbeJsWUG6oz7rC3TQmkEFij 5fII8E70dC5rSlHD0Vkg3cfMYN7D8SM8z+tWr/AHE+F+hB4JKWjERM8DTWpFW5ikMYtS 32nFvzo9IrMeTATyP088JbJh8bLkpVo9qlsGdQRa/R2xvzgO9OLYjgexkoZMSQeG/pTu L/9mD3JTIo5x64Ii3AvA0vZ6Iug6Hz5yYmJrCLLZUrvyZiNZ4pMJly/FOiNuz2kDElFK GNXg== X-Gm-Message-State: ALoCoQlhQl2hQfbKI5NlEYVE8oVHBpebmhMmeufC+gxzBoEtEtW/7a4WWKImqINw5A02rJsJtqyQpCDE5YJ57C+bVriFvq7OkQ== X-Received: by 10.98.71.1 with SMTP id u1mr84818069pfa.139.1451385099951; Tue, 29 Dec 2015 02:31:39 -0800 (PST) Received: from ubuntu1504.ap.freescale.net (gate-zmy3.freescale.com. [192.88.167.1]) by smtp.gmail.com with ESMTPSA id 7sm82291757pfb.62.2015.12.29.02.31.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 29 Dec 2015 02:31:39 -0800 (PST) From: hongbo.zhang@linaro.org To: lng-odp@lists.linaro.org Date: Tue, 29 Dec 2015 18:31:14 +0800 Message-Id: <1451385082-8364-4-git-send-email-hongbo.zhang@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1451385082-8364-1-git-send-email-hongbo.zhang@linaro.org> References: <1451385082-8364-1-git-send-email-hongbo.zhang@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH v3 API-NEXT 03/11] 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)