From patchwork Thu Aug 8 13:48:08 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18855 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f72.google.com (mail-vb0-f72.google.com [209.85.212.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 13158246A4 for ; Thu, 8 Aug 2013 13:49:39 +0000 (UTC) Received: by mail-vb0-f72.google.com with SMTP id f12sf17058vbg.7 for ; Thu, 08 Aug 2013 06:49:38 -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=gx2rfiXoriSYMIfRSnNpebQN1cGSQQTjui64X5pchbQ=; b=oaqQC07oWt1FgRCglLUW4yjcXA9HJS3utBdAvgLz36xSczLX4zZ2MIDXXBE+9mqRSc Lp+nKvyC2pTmh1mBzQtoU38K868K5xFbrcbUHBj/lxBjIJswhHRhzEAtbWjMoSjZCwOj i6PUOe+2JAZKOYsUyPfqmtmgR5BIhI6/SsIljxS1CTzZIU/y5Gp+4mYqOnIBd9P7lCtx mz9nEDXYYCoV8tny7ScKcyQVj4l4h/DVQZk6u0bUiieItxGwr2CdLejWdt7l/IpfJ0Uj ywMUgmixBnYGh20Xl+TL7MhOakf8dXgH0P4tI7KPhzoBUBOmGA9SsaZYS6mQSs6QF7Ug hU7w== X-Received: by 10.236.140.40 with SMTP id d28mr3282736yhj.24.1375969778706; Thu, 08 Aug 2013 06:49:38 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.82.74 with SMTP id g10ls1099750qey.60.gmail; Thu, 08 Aug 2013 06:49:38 -0700 (PDT) X-Received: by 10.58.234.161 with SMTP id uf1mr3087159vec.57.1375969778595; Thu, 08 Aug 2013 06:49:38 -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 sd9si3094332vdc.39.2013.08.08.06.49.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:49:38 -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 i3so3216109vbh.12 for ; Thu, 08 Aug 2013 06:49:38 -0700 (PDT) X-Gm-Message-State: ALoCoQnpo2YdTZ7jOCpOzNrpJhLncml2WwtOiKXhp63/rYQ6Rq78u2ykKO1gXlnB0TIY/rSsHo2l X-Received: by 10.52.109.69 with SMTP id hq5mr2626333vdb.85.1375969778494; Thu, 08 Aug 2013 06:49:38 -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 u4csp16708vcz; Thu, 8 Aug 2013 06:49:37 -0700 (PDT) X-Received: by 10.66.27.143 with SMTP id t15mr6085140pag.171.1375969777504; Thu, 08 Aug 2013 06:49:37 -0700 (PDT) Received: from mail-pb0-f51.google.com (mail-pb0-f51.google.com [209.85.160.51]) by mx.google.com with ESMTPS id pn6si8577376pbb.321.2013.08.08.06.49.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:49:37 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.51 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.51; Received: by mail-pb0-f51.google.com with SMTP id jt11so3244602pbb.24 for ; Thu, 08 Aug 2013 06:49:37 -0700 (PDT) X-Received: by 10.68.90.99 with SMTP id bv3mr6209695pbb.108.1375969777095; Thu, 08 Aug 2013 06:49:37 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id is3sm14380827pbc.25.2013.08.08.06.49.33 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:49:36 -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 06/35] cpufreq: arm_big_little: use cpufreq_table_validate_and_show() Date: Thu, 8 Aug 2013 19:18:08 +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.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/arm_big_little.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/cpufreq/arm_big_little.c b/drivers/cpufreq/arm_big_little.c index 3549f07..5070273 100644 --- a/drivers/cpufreq/arm_big_little.c +++ b/drivers/cpufreq/arm_big_little.c @@ -165,7 +165,7 @@ static int bL_cpufreq_init(struct cpufreq_policy *policy) if (ret) return ret; - ret = cpufreq_frequency_table_cpuinfo(policy, freq_table[cur_cluster]); + ret = cpufreq_table_validate_and_show(policy, freq_table[cur_cluster]); if (ret) { dev_err(cpu_dev, "CPU %d, cluster: %d invalid freq table\n", policy->cpu, cur_cluster); @@ -173,8 +173,6 @@ static int bL_cpufreq_init(struct cpufreq_policy *policy) return ret; } - cpufreq_frequency_table_get_attr(freq_table[cur_cluster], policy->cpu); - if (arm_bL_ops->get_transition_latency) policy->cpuinfo.transition_latency = arm_bL_ops->get_transition_latency(cpu_dev);