From patchwork Fri Sep 13 12:59:34 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20082 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 8915A202E6 for ; Fri, 13 Sep 2013 13:06:26 +0000 (UTC) Received: by mail-vb0-f69.google.com with SMTP id e13sf1189690vbg.0 for ; Fri, 13 Sep 2013 06:06:26 -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=RX/Wk9eIbDaZfymG13Jy6ZxXaCZdUBcft9l2Ey9504E=; b=iPVwgHWltp8xtBuHRXpXiVZXQ9DKFrK17xgsdVqabwKC9nX+W8z7EoSCirjIQA+JUL Lavtu/rm2Ux+Zp9huZp9xDTy/37aEtbPaJ4UiEdjdBdzH4lBLhEDBXMpGKaOyJa9FJTV ZgJJGzu9IxRJ6m/HTt07IV0JAiDce6gfxiFEerUAbBcWp2DO6C2/+Iz/0IIRfgmZf0Q1 hneg0Y33QGo5d3jw1hvcKEiQxXeJYdpKw7iRgSM6WaZ1QX8qLMrPhkn0pL40ek0Clii9 2yXKzhbrx7k+qLWCAQr6qtRK/OC6jPG26PKJWQxJY4hyedR866rupnAUr6/4KGDZGiQU n3lQ== X-Gm-Message-State: ALoCoQkQ6nNMMs8Y8zW59/di5k4Cp2aOu+hQalN7VYmUry5Kmk5Cxai5x5rDMxjf7y+cl4j5CeiV X-Received: by 10.236.176.1 with SMTP id a1mr4852028yhm.10.1379077586091; Fri, 13 Sep 2013 06:06:26 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.70.161 with SMTP id n1ls1176371qeu.27.gmail; Fri, 13 Sep 2013 06:06:25 -0700 (PDT) X-Received: by 10.52.34.109 with SMTP id y13mr10245006vdi.8.1379077585870; Fri, 13 Sep 2013 06:06:25 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id jc7si3099650vdb.39.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:06:25 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.180 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.180; Received: by mail-vc0-f180.google.com with SMTP id gf11so868925vcb.25 for ; Fri, 13 Sep 2013 06:06:25 -0700 (PDT) X-Received: by 10.58.46.229 with SMTP id y5mr4491615vem.15.1379077585736; Fri, 13 Sep 2013 06:06:25 -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 u4csp79587vcz; Fri, 13 Sep 2013 06:06:25 -0700 (PDT) X-Received: by 10.68.225.99 with SMTP id rj3mr13008173pbc.122.1379077585040; Fri, 13 Sep 2013 06:06:25 -0700 (PDT) Received: from mail-pa0-f49.google.com (mail-pa0-f49.google.com [209.85.220.49]) by mx.google.com with ESMTPS id ds3si7428500pbb.49.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:06:25 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.49 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.49; Received: by mail-pa0-f49.google.com with SMTP id ld10so2503520pab.22 for ; Fri, 13 Sep 2013 06:06:24 -0700 (PDT) X-Received: by 10.68.225.232 with SMTP id rn8mr13262603pbc.32.1379077584587; Fri, 13 Sep 2013 06:06:24 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id ys4sm11672144pbb.9.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:06:24 -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 , Dmitry Eremin-Solenikov Subject: [PATCH 028/228] cpufreq: maple: use cpufreq_table_validate_and_show() Date: Fri, 13 Sep 2013 18:29:34 +0530 Message-Id: <01aa7a08e3beb8f2a870d1bbfb94d3c17c49fe6b.1379063063.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.180 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: Dmitry Eremin-Solenikov Signed-off-by: Viresh Kumar --- drivers/cpufreq/maple-cpufreq.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/cpufreq/maple-cpufreq.c b/drivers/cpufreq/maple-cpufreq.c index 6168d77..b3fb661 100644 --- a/drivers/cpufreq/maple-cpufreq.c +++ b/drivers/cpufreq/maple-cpufreq.c @@ -181,10 +181,8 @@ static int maple_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_setall(policy->cpus); - cpufreq_frequency_table_get_attr(maple_cpu_freqs, policy->cpu); - return cpufreq_frequency_table_cpuinfo(policy, - maple_cpu_freqs); + return cpufreq_table_validate_and_show(policy, maple_cpu_freqs); }