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: 18854 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f69.google.com (mail-qe0-f69.google.com [209.85.128.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A99B3246A4 for ; Thu, 8 Aug 2013 13:49:31 +0000 (UTC) Received: by mail-qe0-f69.google.com with SMTP id 1sf3624284qec.8 for ; Thu, 08 Aug 2013 06:49:31 -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=Y1OHE6GImc7KlF31b44kOmVdjYcqsc6Px2jdujMQ0sw=; b=ZWaQxwdEckWSE0bk7Tv+G6ufz/utPdL2L/QNCJr0E7OxUIUXtBNcTR5avHlhGojLVf FxvYrCpPPzy1xficvC5jf6g9S0qLvee4YlgW7e+GF/dfleFQ8WXjdjN3yoaVc8QYRSyn DOc8cvmMwHz7LzrLCZ9nymXNj92A+uHx1hArUVHhh2PwrRgwMQLEn0O8MbBu352x65jJ rDFvPc9YTWw0rxO7ENOxzfFMjFs8131bbIMvXIxz8tb9sfUtLDVOnqrfpCvYx+yukZeO miaoloUWy/tR2ZDyA/D2Gw8dBmIcyCuqb12kGjcAwBYikXhbja8OsTlZH+6o3kDZp5OQ f5Lw== X-Received: by 10.236.120.232 with SMTP id p68mr3399411yhh.43.1375969771321; Thu, 08 Aug 2013 06:49:31 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.58.4 with SMTP id m4ls1127420qeq.52.gmail; Thu, 08 Aug 2013 06:49:31 -0700 (PDT) X-Received: by 10.220.69.71 with SMTP id y7mr3987364vci.40.1375969771205; Thu, 08 Aug 2013 06:49:31 -0700 (PDT) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id se5si3083266vdc.140.2013.08.08.06.49.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:49:31 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.177 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.177; Received: by mail-vc0-f177.google.com with SMTP id gf12so118550vcb.36 for ; Thu, 08 Aug 2013 06:49:31 -0700 (PDT) X-Gm-Message-State: ALoCoQnwRshrSukVOb0Kg58qPnrOr8TA4+myIM1m+M1irj6EUshYNlQfaOIvsCdCrZNIMGTWNZ2o X-Received: by 10.52.243.201 with SMTP id xa9mr2509468vdc.106.1375969771116; Thu, 08 Aug 2013 06:49:31 -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 u4csp16704vcz; Thu, 8 Aug 2013 06:49:30 -0700 (PDT) X-Received: by 10.66.146.199 with SMTP id te7mr6236668pab.106.1375969770227; Thu, 08 Aug 2013 06:49:30 -0700 (PDT) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx.google.com with ESMTPS id rt3si8627041pbc.113.2013.08.08.06.49.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:49:30 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.54 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.54; Received: by mail-pb0-f54.google.com with SMTP id ro12so3244078pbb.13 for ; Thu, 08 Aug 2013 06:49:29 -0700 (PDT) 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 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 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-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.177 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(). 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.