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: 2889741 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D063BBFF05 for ; Fri, 13 Sep 2013 14:49:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C17F92035C for ; Fri, 13 Sep 2013 14:49:47 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 16CD320113 for ; Fri, 13 Sep 2013 14:49:43 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VKT8O-0006SM-Nj; Fri, 13 Sep 2013 13:10:06 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VKT7k-0006BW-HY; Fri, 13 Sep 2013 13:09:24 +0000 Received: from mail-pb0-f54.google.com ([209.85.160.54]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VKT5C-0005dD-6Y for linux-arm-kernel@lists.infradead.org; Fri, 13 Sep 2013 13:06:47 +0000 Received: by mail-pb0-f54.google.com with SMTP id ro12so1217641pbb.27 for ; Fri, 13 Sep 2013 06:06:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=RX/Wk9eIbDaZfymG13Jy6ZxXaCZdUBcft9l2Ey9504E=; b=fjZcpWr6jFBnxpjPcBcyEQvf9YDVsLQnSzvBnk6luH284RCiPTV9Arg8QudSxSWxJr kb8/Ew/fB99wtADylGN2dvWeFyFEaUBSxXtyf+9tQ+EqSap3sRwG3LeuArBMRy7BfPhb 3aq9yTtIAX2PbJuBijqcc5/2MmlWDc9B2ixgy1Wt+pv3ASkqUoKoU6hyHR1VyCpGEXbs xBBeEb0FKC+FHGiPy2DkTpE18yv2sYrH8WseOcRaTkAROU49s36SXpyRL6KbAB3CrA9i rZsKPeRNMWyLSA9P9T2TQuNIjBgS44L47JMtiz9X0hImlficK77iD3/ukhMB8MaU9R+L 06Rw== X-Gm-Message-State: ALoCoQk5xYWLSPAHeu3yxMnCbRfrfEPeRsfLc7018aKIi+vgrP4FWtU82dconLEby/3Ni0ipiycC 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 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130913_090646_388421_D351BAC7 X-CRM114-Status: UNSURE ( 8.83 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, Dmitry Eremin-Solenikov , Viresh Kumar , patches@linaro.org, linux-kernel@vger.kernel.org, cpufreq@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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); }