From patchwork Thu Aug 8 13:48:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18863 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f70.google.com (mail-qe0-f70.google.com [209.85.128.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9A656246A4 for ; Thu, 8 Aug 2013 13:50:37 +0000 (UTC) Received: by mail-qe0-f70.google.com with SMTP id 6sf3626545qeb.1 for ; Thu, 08 Aug 2013 06:50:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:in-reply-to:references :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=7sZO9hbin5Y2v5Ky6DwaIU2g5ic/s0hBzhAzjtHLg8E=; b=gleHNQjLcABfGIiMAhSWpi/2ZiFr7u8bCKplGIf/uTSVFVY3BqaimzECZVpDTmtDj0 Ew+GKx9anbplKa2PfrQo72oSKbsxp4XuqwAd5JqghRVI+YsgI+B0gqWftVxEByjA/WYm GasLg1yoKR8+bar6dBy+wgr0/k2B6B7k5ansXQORibzD40B1wUofcZnFjaI1L9rdN7RF lCHhuCdpdt7cajcrcNhG3T+6roZYwDBK6BqmtOJ6ejTm+nCMUB1Cc779Agu91vdN2vQZ c4A8tjEjoaaxOCnZPWzwKJajZrtLnefVGIHWMlA94QfLASw+LBCM3kcC6hTEQMvht34Y RoAQ== X-Received: by 10.236.41.163 with SMTP id h23mr1353375yhb.0.1375969837415; Thu, 08 Aug 2013 06:50:37 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.17.197 with SMTP id q5ls1067883qed.93.gmail; Thu, 08 Aug 2013 06:50:37 -0700 (PDT) X-Received: by 10.52.103.101 with SMTP id fv5mr2659977vdb.31.1375969837304; Thu, 08 Aug 2013 06:50:37 -0700 (PDT) Received: from mail-ve0-f178.google.com (mail-ve0-f178.google.com [209.85.128.178]) by mx.google.com with ESMTPS id o7si3092116vet.93.2013.08.08.06.50.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:50:37 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.178 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.178; Received: by mail-ve0-f178.google.com with SMTP id ox1so3075089veb.37 for ; Thu, 08 Aug 2013 06:50:37 -0700 (PDT) X-Gm-Message-State: ALoCoQlT3olrBcLF/VNJ/TFdR46uJmqjPvzNJeYWGQODp4rCVEHTFGU/ng5VUKpDMaM/XgOm+nzj X-Received: by 10.58.154.34 with SMTP id vl2mr3194501veb.35.1375969837229; Thu, 08 Aug 2013 06:50:37 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp16769vcz; Thu, 8 Aug 2013 06:50:36 -0700 (PDT) X-Received: by 10.66.252.234 with SMTP id zv10mr6097577pac.186.1375969836271; Thu, 08 Aug 2013 06:50:36 -0700 (PDT) Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by mx.google.com with ESMTPS id zo4si8574106pbc.342.2013.08.08.06.50.35 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:50:36 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.44 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.44; Received: by mail-pa0-f44.google.com with SMTP id fz6so695405pac.31 for ; Thu, 08 Aug 2013 06:50:35 -0700 (PDT) X-Received: by 10.68.129.138 with SMTP id nw10mr6068565pbb.158.1375969835785; Thu, 08 Aug 2013 06:50:35 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id bb1sm14409654pbc.10.2013.08.08.06.50.31 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:50:34 -0700 (PDT) From: Viresh Kumar To: rjw@sisk.pl Cc: linaro-kernel@lists.linaro.org, patches@linaro.org, cpufreq@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Viresh Kumar , Kukjin Kim Subject: [PATCH 14/35] cpufreq: exynos: use cpufreq_table_validate_and_show() Date: Thu, 8 Aug 2013 19:18:16 +0530 Message-Id: <05a2540f39f55fd9e8fc5d08ef6b7d68bd052061.1375964117.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.178 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Lets use cpufreq_table_validate_and_show() instead of calling cpufreq_frequency_table_cpuinfo() and cpufreq_frequency_table_get_attr(). Cc: Kukjin Kim Signed-off-by: Viresh Kumar --- drivers/cpufreq/exynos-cpufreq.c | 4 +--- drivers/cpufreq/exynos5440-cpufreq.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/cpufreq/exynos-cpufreq.c b/drivers/cpufreq/exynos-cpufreq.c index 3664751..71c4926 100644 --- a/drivers/cpufreq/exynos-cpufreq.c +++ b/drivers/cpufreq/exynos-cpufreq.c @@ -249,14 +249,12 @@ static int exynos_cpufreq_cpu_init(struct cpufreq_policy *policy) { policy->cur = policy->min = policy->max = exynos_getspeed(policy->cpu); - cpufreq_frequency_table_get_attr(exynos_info->freq_table, policy->cpu); - /* set the transition latency value */ policy->cpuinfo.transition_latency = 100000; cpumask_setall(policy->cpus); - return cpufreq_frequency_table_cpuinfo(policy, exynos_info->freq_table); + return cpufreq_table_validate_and_show(policy, exynos_info->freq_table); } static int exynos_cpufreq_cpu_exit(struct cpufreq_policy *policy) diff --git a/drivers/cpufreq/exynos5440-cpufreq.c b/drivers/cpufreq/exynos5440-cpufreq.c index 0c74018..1ac93e0 100644 --- a/drivers/cpufreq/exynos5440-cpufreq.c +++ b/drivers/cpufreq/exynos5440-cpufreq.c @@ -323,7 +323,7 @@ static int exynos_cpufreq_cpu_init(struct cpufreq_policy *policy) { int ret; - ret = cpufreq_frequency_table_cpuinfo(policy, dvfs_info->freq_table); + ret = cpufreq_table_validate_and_show(policy, dvfs_info->freq_table); if (ret) { dev_err(dvfs_info->dev, "Invalid frequency table: %d\n", ret); return ret; @@ -333,8 +333,6 @@ static int exynos_cpufreq_cpu_init(struct cpufreq_policy *policy) policy->cpuinfo.transition_latency = dvfs_info->latency; cpumask_setall(policy->cpus); - cpufreq_frequency_table_get_attr(dvfs_info->freq_table, policy->cpu); - return 0; }