From patchwork Fri Sep 13 12:59:20 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20068 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f70.google.com (mail-vb0-f70.google.com [209.85.212.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 081AA202E6 for ; Fri, 13 Sep 2013 13:04:42 +0000 (UTC) Received: by mail-vb0-f70.google.com with SMTP id h10sf1188097vbh.1 for ; Fri, 13 Sep 2013 06:04:42 -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=njkLIhwz+c9tNS3XR0fZewQxgVYGdAGJihp9x1Xvzm8=; b=czO+Z7Q7H4KQDm6UOcrlnDtoh7dqqilI8vswuZYaGTm21m48+wYELE/TfGDdPu0cO5 Nu/aJd0W/pHyOM2I2I6fP7+3s+PqVRnmwklc7vfqHNaoBPtXEdFvY8aLSaqz7xmeoOLg 15pzI0p39cxbvGtGK4Pt2t/Tbv0Y3H8h+5PYry1Uofb/R4hV1x2jffZSnOs/cJOz7w+l o6wL7+GpZnhfMvgu1q66DakIofNDT+VFeSZQZKjh2WS+UJRwgQ6Yx0IPsLMtmiQBxa8c bbLj3SHG/Nlw0IsNdhr+r1xQqeC1YSfwpitRy3aPvmABCH1m9npZVh8WfWWD1SjnE04j pcUA== X-Gm-Message-State: ALoCoQmgmRUjKZK8QRcdoMPT5ei48A+moyGVwZdBJntonb0/U8+2BNASS106Dg1qouzcH+sAsZ/n X-Received: by 10.58.188.15 with SMTP id fw15mr950860vec.9.1379077482662; Fri, 13 Sep 2013 06:04:42 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.39.193 with SMTP id r1ls1211759qek.30.gmail; Fri, 13 Sep 2013 06:04:42 -0700 (PDT) X-Received: by 10.52.113.99 with SMTP id ix3mr6184762vdb.22.1379077482422; Fri, 13 Sep 2013 06:04:42 -0700 (PDT) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id w20si3096797vco.68.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:04:42 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.172 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.172; Received: by mail-vc0-f172.google.com with SMTP id m17so891349vca.31 for ; Fri, 13 Sep 2013 06:04:42 -0700 (PDT) X-Received: by 10.52.74.100 with SMTP id s4mr591603vdv.35.1379077482329; Fri, 13 Sep 2013 06:04:42 -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 u4csp79470vcz; Fri, 13 Sep 2013 06:04:40 -0700 (PDT) X-Received: by 10.67.23.71 with SMTP id hy7mr14993841pad.99.1379077480391; Fri, 13 Sep 2013 06:04:40 -0700 (PDT) Received: from mail-pb0-f45.google.com (mail-pb0-f45.google.com [209.85.160.45]) by mx.google.com with ESMTPS id ua7si11126037pac.262.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:04:40 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.45 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.45; Received: by mail-pb0-f45.google.com with SMTP id mc17so1213187pbc.4 for ; Fri, 13 Sep 2013 06:04:40 -0700 (PDT) X-Received: by 10.68.180.100 with SMTP id dn4mr1980518pbc.178.1379077479933; Fri, 13 Sep 2013 06:04:39 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id ry4sm18003150pab.4.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:04:39 -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 014/228] cpufreq: arm_big_little: use cpufreq_table_validate_and_show() Date: Fri, 13 Sep 2013 18:29:20 +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.220.172 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 768aa9c..8cb6dbc 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);