From patchwork Thu Aug 8 13:48:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18884 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 8285C246A4 for ; Thu, 8 Aug 2013 13:53:11 +0000 (UTC) Received: by mail-qe0-f70.google.com with SMTP id 6sf3629469qeb.5 for ; Thu, 08 Aug 2013 06:53:11 -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=05jG+ZmfS8TMFazdkOZFVGq1z74i2Q2xtu0RwpCFm5k=; b=gVn+AxeqOmFLUnRrByShKZYbW38h33g9o+V9tmGBk5wf5sXrVpUumA5u6OGVaCpBml BohZdc5kxQrH0M0ReJahs1blwf43fnoGSzObfRN2L40yjydNH4UWjRHVMKg8PF4dkAds qhOiJYCiwy3+npWtizZegnDd4jgjdPzOGwmA1IvA1xbgZxh4hj50bLWKFOfirnh7q7+e IS6FGghK0Zn7jQZSTOx1LJXYBVwvTshB9Jr5l5edRNLXo0JRZTcB67g16nHVN7dq1uts pI40sJdUwsTTPjXfm6nDw5/p+clu6ctl2qTfV+lJRlFwGVv9aI/g2eH0rCRiE1TrO82W xaBQ== X-Received: by 10.236.180.41 with SMTP id i29mr3383011yhm.1.1375969991279; Thu, 08 Aug 2013 06:53:11 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.1.78 with SMTP id 14ls1104827qek.57.gmail; Thu, 08 Aug 2013 06:53:11 -0700 (PDT) X-Received: by 10.220.74.69 with SMTP id t5mr4110333vcj.18.1375969991168; Thu, 08 Aug 2013 06:53:11 -0700 (PDT) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id cz7si3093666veb.109.2013.08.08.06.53.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:53:11 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.174 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.174; Received: by mail-vc0-f174.google.com with SMTP id gd11so120866vcb.5 for ; Thu, 08 Aug 2013 06:53:11 -0700 (PDT) X-Gm-Message-State: ALoCoQn/TALLei1QBpUN7VqvukK39urZ8MVfZSrVy/pS5lQkeo6jtlO+m7ihJokuMcFbDVkV3k0q X-Received: by 10.52.243.201 with SMTP id xa9mr2517101vdc.106.1375969991086; Thu, 08 Aug 2013 06:53:11 -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 u4csp16905vcz; Thu, 8 Aug 2013 06:53:10 -0700 (PDT) X-Received: by 10.68.218.199 with SMTP id pi7mr6327301pbc.19.1375969990277; Thu, 08 Aug 2013 06:53:10 -0700 (PDT) Received: from mail-pb0-f48.google.com (mail-pb0-f48.google.com [209.85.160.48]) by mx.google.com with ESMTPS id hs9si8584278pbc.334.2013.08.08.06.53.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:53:10 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.48 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.48; Received: by mail-pb0-f48.google.com with SMTP id ma3so3219172pbc.7 for ; Thu, 08 Aug 2013 06:53:09 -0700 (PDT) X-Received: by 10.68.252.233 with SMTP id zv9mr6213973pbc.69.1375969989875; Thu, 08 Aug 2013 06:53:09 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id bs3sm14371654pbc.42.2013.08.08.06.53.06 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:53:09 -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 , Stephen Warren Subject: [PATCH 35/35] cpufreq: tegra: use cpufreq_table_validate_and_show() Date: Thu, 8 Aug 2013 19:18:37 +0530 Message-Id: <568f3dbd414b050bb2319d960fb5044a5aed8ee3.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.220.174 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: Stephen Warren Signed-off-by: Viresh Kumar --- drivers/cpufreq/tegra-cpufreq.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/cpufreq/tegra-cpufreq.c b/drivers/cpufreq/tegra-cpufreq.c index cd66b85..b50d2c4 100644 --- a/drivers/cpufreq/tegra-cpufreq.c +++ b/drivers/cpufreq/tegra-cpufreq.c @@ -215,8 +215,7 @@ static int tegra_cpu_init(struct cpufreq_policy *policy) clk_prepare_enable(emc_clk); clk_prepare_enable(cpu_clk); - cpufreq_frequency_table_cpuinfo(policy, freq_table); - cpufreq_frequency_table_get_attr(freq_table, policy->cpu); + cpufreq_table_validate_and_show(policy, freq_table); policy->cur = tegra_getspeed(policy->cpu); target_cpu_speed[policy->cpu] = policy->cur; @@ -233,7 +232,6 @@ static int tegra_cpu_init(struct cpufreq_policy *policy) static int tegra_cpu_exit(struct cpufreq_policy *policy) { - cpufreq_frequency_table_cpuinfo(policy, freq_table); clk_disable_unprepare(emc_clk); return 0; }