From patchwork Fri Sep 13 12:59:38 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20086 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f72.google.com (mail-qe0-f72.google.com [209.85.128.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 552B4202E6 for ; Fri, 13 Sep 2013 13:06:54 +0000 (UTC) Received: by mail-qe0-f72.google.com with SMTP id 6sf1214414qea.7 for ; Fri, 13 Sep 2013 06:06:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version: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=CD7XVZMTAODYmn+AQqTDIYJbWQH4A1KES0xwr0LmHt4=; b=YzdRVjGmzK6gjSpHIvLV5MOgk/6av9osoqe5JuuLnBNpG62FkbS0Zq1gy7o947Bait SitBARtpKte0nFCYe+Uegpz9UZKkSoBFMvmCYLduiaRcNNvX0popJW+xtx3aIBQ9y7EV OLZ4Y6Sh4HxyxZ/jzvsO0OmUzc0omP4fGGbYAtthEY14YW+5HadOqBQTHNTKmtJqVSAl i/lDz9UFhF7EnXcUvNsUa0ZCJcv0Lqt2wJz8MmLNZITwxKsM7OM99o8MD/8uA2eBcqB2 1s1lgOc/jLzssVtL7I6/HcpcFVME2ZPsweYAoE4O6RB5EnDEQEIn2SzHJnrAjxm6a0rH F9/g== X-Gm-Message-State: ALoCoQkUzoY3AZStvB5xPrTU7W5MLRpI0UNM08Y8V4PtD6xiC1N6cg+CQgZyvy+ZdK4XQwQ5LLpz X-Received: by 10.236.18.196 with SMTP id l44mr670549yhl.52.1379077614114; Fri, 13 Sep 2013 06:06:54 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.81.230 with SMTP id d6ls1168377qey.93.gmail; Fri, 13 Sep 2013 06:06:53 -0700 (PDT) X-Received: by 10.52.170.232 with SMTP id ap8mr141095vdc.40.1379077613290; Fri, 13 Sep 2013 06:06:53 -0700 (PDT) Received: from mail-vb0-f44.google.com (mail-vb0-f44.google.com [209.85.212.44]) by mx.google.com with ESMTPS id sn2si3091474vec.102.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:06:53 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.44 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.44; Received: by mail-vb0-f44.google.com with SMTP id e13so877142vbg.17 for ; Fri, 13 Sep 2013 06:06:53 -0700 (PDT) X-Received: by 10.58.190.34 with SMTP id gn2mr19427vec.34.1379077613199; Fri, 13 Sep 2013 06:06:53 -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 u4csp79619vcz; Fri, 13 Sep 2013 06:06:52 -0700 (PDT) X-Received: by 10.68.204.136 with SMTP id ky8mr1582674pbc.192.1379077612287; Fri, 13 Sep 2013 06:06:52 -0700 (PDT) Received: from mail-pd0-f169.google.com (mail-pd0-f169.google.com [209.85.192.169]) by mx.google.com with ESMTPS id z4si616036paz.205.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:06:52 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.169 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.169; Received: by mail-pd0-f169.google.com with SMTP id r10so1230444pdi.14 for ; Fri, 13 Sep 2013 06:06:51 -0700 (PDT) X-Received: by 10.66.169.172 with SMTP id af12mr15435656pac.23.1379077611816; Fri, 13 Sep 2013 06:06:51 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id ht5sm11649423pbb.29.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:06:51 -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 Subject: [PATCH 032/228] cpufreq: pmac: use cpufreq_table_validate_and_show() Date: Fri, 13 Sep 2013 18:29:38 +0530 Message-Id: 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.212.44 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(). Signed-off-by: Viresh Kumar --- drivers/cpufreq/pmac32-cpufreq.c | 3 +-- drivers/cpufreq/pmac64-cpufreq.c | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/cpufreq/pmac32-cpufreq.c b/drivers/cpufreq/pmac32-cpufreq.c index a096cd3..470b555 100644 --- a/drivers/cpufreq/pmac32-cpufreq.c +++ b/drivers/cpufreq/pmac32-cpufreq.c @@ -408,8 +408,7 @@ static int pmac_cpufreq_cpu_init(struct cpufreq_policy *policy) policy->cpuinfo.transition_latency = transition_latency; policy->cur = cur_freq; - cpufreq_frequency_table_get_attr(pmac_cpu_freqs, policy->cpu); - return cpufreq_frequency_table_cpuinfo(policy, pmac_cpu_freqs); + return cpufreq_table_validate_and_show(policy, pmac_cpu_freqs); } static u32 read_gpio(struct device_node *np) diff --git a/drivers/cpufreq/pmac64-cpufreq.c b/drivers/cpufreq/pmac64-cpufreq.c index 3a51ad7..41fa89e 100644 --- a/drivers/cpufreq/pmac64-cpufreq.c +++ b/drivers/cpufreq/pmac64-cpufreq.c @@ -363,10 +363,8 @@ static int g5_cpufreq_cpu_init(struct cpufreq_policy *policy) * cpufreq core if in the secondary policy we tell it that * it actually must be one policy together with all others. */ cpumask_copy(policy->cpus, cpu_online_mask); - cpufreq_frequency_table_get_attr(g5_cpu_freqs, policy->cpu); - return cpufreq_frequency_table_cpuinfo(policy, - g5_cpu_freqs); + return cpufreq_table_validate_and_show(policy, g5_cpu_freqs); }