From patchwork Thu Aug 8 13:48:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18869 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f198.google.com (mail-qc0-f198.google.com [209.85.216.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8262A246A4 for ; Thu, 8 Aug 2013 13:51:20 +0000 (UTC) Received: by mail-qc0-f198.google.com with SMTP id a11sf3657562qcx.9 for ; Thu, 08 Aug 2013 06:51:20 -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=aTnr+v+HC+ga5XyVJDNNZzSZnNztf/M8epDqXekl4fI=; b=eVfRflLpMCw/dMBWBOfzVi+2XTp/D2h5l6adthc/D4JcQzbWhQkpzzXlCrRBqeP9UY vOI1KHOK8/JyzuJ42UVnPsxCeguMySUbs7xkcInJj9Dlq6qYi76r1E0RYduY2Jxt8zmm kTQ2X+fUPBrgHitoVYIYyd8dJnPBQxXUgDMxZGUlgKgHM1MTnpdP2pQR8hwngxxYRHBe 3psgVP3IJG7AN3S/AmZWbAAFzwr97C+o2+38WAMxfgain8XqCvII1JyPBMABH+d5G5Zk oSDg23mTlumuMz2xMiPOisfdbGhjzzhRsDzw0OuyZoBZHwSmNHGAlrJq6M4UEoQYIGe7 JhoQ== X-Received: by 10.236.110.168 with SMTP id u28mr3331175yhg.32.1375969880298; Thu, 08 Aug 2013 06:51:20 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.84.170 with SMTP id a10ls1131910qez.20.gmail; Thu, 08 Aug 2013 06:51:20 -0700 (PDT) X-Received: by 10.52.117.174 with SMTP id kf14mr2665626vdb.26.1375969880196; Thu, 08 Aug 2013 06:51:20 -0700 (PDT) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by mx.google.com with ESMTPS id dj3si3098244vcb.44.2013.08.08.06.51.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:51:20 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.176; Received: by mail-ve0-f176.google.com with SMTP id b10so728546vea.7 for ; Thu, 08 Aug 2013 06:51:20 -0700 (PDT) X-Gm-Message-State: ALoCoQnavWMAx/h0rKjhkk3Nqkkwov9a0zsTz6AUQKV15Y3S8Wo5UZbVdcBZISQQZK/+rCEz3elv X-Received: by 10.58.134.84 with SMTP id pi20mr1444155veb.55.1375969880124; Thu, 08 Aug 2013 06:51:20 -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 u4csp16809vcz; Thu, 8 Aug 2013 06:51:19 -0700 (PDT) X-Received: by 10.66.159.132 with SMTP id xc4mr6375290pab.27.1375969879135; Thu, 08 Aug 2013 06:51:19 -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 aq4si8618718pbd.176.2013.08.08.06.51.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:51:19 -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 bi5so3496692pad.22 for ; Thu, 08 Aug 2013 06:51:18 -0700 (PDT) X-Received: by 10.66.250.47 with SMTP id yz15mr6185772pac.154.1375969878744; Thu, 08 Aug 2013 06:51:18 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id bt1sm14426258pbb.2.2013.08.08.06.51.14 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:51:18 -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 20/35] cpufreq: maple: use cpufreq_table_validate_and_show() Date: Thu, 8 Aug 2013 19:18:22 +0530 Message-Id: <658c455769456ff0b3ef5becc13acd199ba169d3.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.128.176 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 41c601f..19076cc 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); }