From patchwork Thu Aug 8 13:48:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 2841152 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A0F559F271 for ; Thu, 8 Aug 2013 13:54:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8A95520378 for ; Thu, 8 Aug 2013 13:54:42 +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 5059D202DB for ; Thu, 8 Aug 2013 13:54:41 +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 1V7QfF-0005p5-Mo; Thu, 08 Aug 2013 13:54:05 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1V7Qf0-0004mZ-Kw; Thu, 08 Aug 2013 13:53:50 +0000 Received: from mail-pb0-f52.google.com ([209.85.160.52]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V7Qd8-0004UG-GV for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2013 13:51:56 +0000 Received: by mail-pb0-f52.google.com with SMTP id wz12so3232805pbc.11 for ; Thu, 08 Aug 2013 06:51:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=Y6gf5WlGVO4IHau+S+XjkB8ucZx4IwOZYckwNN8kiO4=; b=haDwlqg5CWIZOf8lRL03BD410MTV1ngc8FgUXAQh3tbsuzS37equPTowJ8zCzklhc4 8pNfBksIASmCizJ7VZAhcW4WaY80JxIrj3ctD4p5WwyRps8wGnEK6MEmRgibhw8sORFy nYA3Qgol4NXbwj08ciixkf9ZOOwOjmy9SX4vHbX5T/ZuHJSNyaTKNea34iZkdlpGQIvN jG0tr2/QwQMqymspgpojnHyCeHCcFjvsO7cNDaD2OaGzvZtqgOKh5kj2krgeEBLQPBIG fh7zm+kbLvjWj4xMnuAGSFg4g3GJmPzx+XTKJ1QAnQ0E0wA7WGx/oLijMLyeYSx8qFmU 63zA== X-Gm-Message-State: ALoCoQmuFkAe3OJNQzf/Aa/jF8Cmoo/SYO+tZgP4izTC3NJVmzkitHKmVvMLtBVKx1B+23DO5Q6g X-Received: by 10.68.104.101 with SMTP id gd5mr6165052pbb.132.1375969893464; Thu, 08 Aug 2013 06:51:33 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id sz6sm16719842pab.5.2013.08.08.06.51.29 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:51:32 -0700 (PDT) From: Viresh Kumar To: rjw@sisk.pl Subject: [PATCH 22/35] cpufreq: p4-clockmod: use cpufreq_table_validate_and_show() Date: Thu, 8 Aug 2013 19:18:24 +0530 Message-Id: <76facebc0442f1b7c5041168a0dd87bd0080e06b.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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130808_095154_702717_CDB81994 X-CRM114-Status: GOOD ( 10.22 ) X-Spam-Score: -2.6 (--) Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, Viresh Kumar , patches@linaro.org, linux-kernel@vger.kernel.org, cpufreq@vger.kernel.org, "David S. Miller" , 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=-4.2 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: David S. Miller Signed-off-by: Viresh Kumar --- drivers/cpufreq/p4-clockmod.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/cpufreq/p4-clockmod.c b/drivers/cpufreq/p4-clockmod.c index 2f0a2a6..03478bf 100644 --- a/drivers/cpufreq/p4-clockmod.c +++ b/drivers/cpufreq/p4-clockmod.c @@ -230,7 +230,6 @@ static int cpufreq_p4_cpu_init(struct cpufreq_policy *policy) else p4clockmod_table[i].frequency = (stock_freq * i)/8; } - cpufreq_frequency_table_get_attr(p4clockmod_table, policy->cpu); /* cpuinfo and default policy values */ @@ -239,7 +238,7 @@ static int cpufreq_p4_cpu_init(struct cpufreq_policy *policy) policy->cpuinfo.transition_latency = 10000001; policy->cur = stock_freq; - return cpufreq_frequency_table_cpuinfo(policy, &p4clockmod_table[0]); + return cpufreq_table_validate_and_show(policy, &p4clockmod_table[0]); }