From patchwork Thu Aug 8 13:48:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 2841124 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 E1D7C9F271 for ; Thu, 8 Aug 2013 13:51:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4603820441 for ; Thu, 8 Aug 2013 13:51: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 053742043E for ; Thu, 8 Aug 2013 13:51:46 +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 1V7Qc7-0003AZ-Qn; Thu, 08 Aug 2013 13:50:53 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1V7Qbc-0004Gb-LG; Thu, 08 Aug 2013 13:50:20 +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 1V7Qb8-00046n-NT for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2013 13:49:51 +0000 Received: by mail-pb0-f54.google.com with SMTP id ro12so3265284pbb.27 for ; Thu, 08 Aug 2013 06:49:29 -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=Y1OHE6GImc7KlF31b44kOmVdjYcqsc6Px2jdujMQ0sw=; b=Ky0DZLdTCkeb/phiFiEJLVQzFm5X13oBMSaIU0NuCvEX87mZK3tABvYX3+SzCZBn40 aakLikVN4RZP0Uisg1DouaBwMkOiz5jI7lKRNTA/yQjl43kitN5KMspjvat06wjvPwhF 6I0HFahBkXl9Rny3a/LI8swmyPgbxLHb1pwkm60BXsvrdXe6lGHTVaQtsIqkQGuSSQ8j +F81fMNUab47oWxQkLjlHucrV9zcPkI2z+cyi1M1eJD7M1Sz+FDAnSf3eQjaN+/Pgyfq ugZG3jX01MB9D8OyH0rCbo6NuA7knc+OUxDbT4cofj7gsDVdeGqzzgAwj5cuAMJM8yOw isEw== X-Gm-Message-State: ALoCoQnm6VBnFyXufXsQmvw9WXTREEgugP3hsCuEVzLHZ2Nzejo+AYqOD2IplT0EWfFuaHKZMKHc X-Received: by 10.68.202.106 with SMTP id kh10mr6172939pbc.90.1375969769842; Thu, 08 Aug 2013 06:49:29 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id z14sm14418140pbt.0.2013.08.08.06.49.25 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:49:29 -0700 (PDT) From: Viresh Kumar To: rjw@sisk.pl Subject: [PATCH 05/35] cpufreq: acpi-cpufreq: use cpufreq_table_validate_and_show() Date: Thu, 8 Aug 2013 19:18:07 +0530 Message-Id: <01b9e673a0f3791720ef0f0b66d6ffc2dd331219.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_094950_902773_D8433FAA X-CRM114-Status: GOOD ( 10.23 ) 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, 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(). Signed-off-by: Viresh Kumar --- drivers/cpufreq/acpi-cpufreq.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/cpufreq/acpi-cpufreq.c b/drivers/cpufreq/acpi-cpufreq.c index 9b5d1b1..75e829d 100644 --- a/drivers/cpufreq/acpi-cpufreq.c +++ b/drivers/cpufreq/acpi-cpufreq.c @@ -837,7 +837,7 @@ static int acpi_cpufreq_cpu_init(struct cpufreq_policy *policy) data->freq_table[valid_states].frequency = CPUFREQ_TABLE_END; perf->state = 0; - result = cpufreq_frequency_table_cpuinfo(policy, data->freq_table); + result = cpufreq_table_validate_and_show(policy, data->freq_table); if (result) goto err_freqfree; @@ -868,8 +868,6 @@ static int acpi_cpufreq_cpu_init(struct cpufreq_policy *policy) (u32) perf->states[i].power, (u32) perf->states[i].transition_latency); - cpufreq_frequency_table_get_attr(data->freq_table, policy->cpu); - /* * the first call to ->target() should result in us actually * writing something to the appropriate registers.