From patchwork Thu Aug 8 13:48:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18873 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f69.google.com (mail-vb0-f69.google.com [209.85.212.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 61DCC246A4 for ; Thu, 8 Aug 2013 13:51:49 +0000 (UTC) Received: by mail-vb0-f69.google.com with SMTP id e13sf2639706vbg.8 for ; Thu, 08 Aug 2013 06:51:49 -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=iyQR1tSLzlDHzteKUXn5li2uF/CJKKH9W65CTR0G4bM=; b=lpATtpSbHmp/tzJPx395bRdNU3uShqtFxduW4cB44TA8T+DXhDQkZOCSm4AKHn7N9o 0M85OpXoih/kEXNwj39URDJUloUpPNcr6Y4EJzdc2jGvcUyhrwIO+CmuJYRRm/mYXrL2 nS/5y6FdKGyg8N2rEr6n5YuT09/bPuGFIFhtrEQgX1uX9GpEbYdilI5KXlqNY+Bw5pYh mNp5quOEYlzdN2CX3pTs+da70eg0oYLwhlJcLLwl14an/RmQ2H77kap4beiIXMZQqkVv s8px7gpkyXR2ayhReQggAc9AxF+oVW2WkzQpg5USXGUTOWLEsl66oJdXJNG+mtrQVq2n s9sg== X-Received: by 10.236.130.148 with SMTP id k20mr3391455yhi.26.1375969909044; Thu, 08 Aug 2013 06:51:49 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.58.175 with SMTP id s15ls1135536qeq.42.gmail; Thu, 08 Aug 2013 06:51:48 -0700 (PDT) X-Received: by 10.52.161.33 with SMTP id xp1mr2676619vdb.55.1375969908925; Thu, 08 Aug 2013 06:51:48 -0700 (PDT) Received: from mail-vb0-f53.google.com (mail-vb0-f53.google.com [209.85.212.53]) by mx.google.com with ESMTPS id bq2si3092568vcb.115.2013.08.08.06.51.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:51:48 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.53 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.53; Received: by mail-vb0-f53.google.com with SMTP id i3so3143486vbh.40 for ; Thu, 08 Aug 2013 06:51:48 -0700 (PDT) X-Gm-Message-State: ALoCoQlSv05imWtZKRC9/63IwH7Jcgwt8a8IinRBi5Kvla18ImVubvh9vihWDYhcUABy+tHeE3iq X-Received: by 10.52.117.208 with SMTP id kg16mr2723194vdb.48.1375969908833; Thu, 08 Aug 2013 06:51:48 -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 u4csp16837vcz; Thu, 8 Aug 2013 06:51:48 -0700 (PDT) X-Received: by 10.68.143.199 with SMTP id sg7mr6354736pbb.13.1375969908021; Thu, 08 Aug 2013 06:51:48 -0700 (PDT) Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) by mx.google.com with ESMTPS id mu18si9753754pab.205.2013.08.08.06.51.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:51:48 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.43 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.43; Received: by mail-pa0-f43.google.com with SMTP id hz10so3474092pad.2 for ; Thu, 08 Aug 2013 06:51:47 -0700 (PDT) X-Received: by 10.66.155.36 with SMTP id vt4mr6230467pab.93.1375969907542; Thu, 08 Aug 2013 06:51:47 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id nj9sm14409470pbc.13.2013.08.08.06.51.43 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:51:46 -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 24/35] cpufreq: pmac: use cpufreq_table_validate_and_show() Date: Thu, 8 Aug 2013 19:18:26 +0530 Message-Id: <5543f97ceba9becba711bd29e57d781a19c1ad26.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.212.53 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 38cdc63..0b3efdb 100644 --- a/drivers/cpufreq/pmac32-cpufreq.c +++ b/drivers/cpufreq/pmac32-cpufreq.c @@ -407,8 +407,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 b6850d9..366be61 100644 --- a/drivers/cpufreq/pmac64-cpufreq.c +++ b/drivers/cpufreq/pmac64-cpufreq.c @@ -362,10 +362,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); }