From patchwork Fri Sep 13 12:59:19 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20067 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f69.google.com (mail-vb0-f69.google.com [209.85.212.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8A4BC202E6 for ; Fri, 13 Sep 2013 13:04:35 +0000 (UTC) Received: by mail-vb0-f69.google.com with SMTP id e13sf1187444vbg.0 for ; Fri, 13 Sep 2013 06:04:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version: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=ftcDR+QmO1UnBDaVvvun9v3w+KCVgv1Qs+sRZ2wpAhE=; b=Oxw72mSoDEwUJ35Hlplp+ZT6iwllgBpdHetO2qk2zLzsGW2Nw5dzxbF377IiuhBmIS Gng5s/S2YZbahDWG9hyyW2s7cMY2raOrR4HPZ8jEA3Yif/08GxjErYbrJW8e/lR7b2Qw jj+C4Ci57MCqkZHxcUO/0pes0CselEYzx4HvsknR/+zSd5TZKYZn1s2Z/56V4JESx4kC wgpSegDkb9FFmKCLWiTjKC021I4smqhdpg0qmP9PffyE2V2LbCXDaneLIGMvCUh7ShPP FFm634AfwU62dQGrpG/5U/dEYJvn3SpdgpmWoKMpYN1u9TnuP4Beb2fH1j1QZddvIJWG hhgw== X-Gm-Message-State: ALoCoQnTAUysbFPCJO+8zwe3DirMpPkN0trDaVW9BroVpIwW9UbNSxMvG1A3z45DB1/WPURFSE1I X-Received: by 10.52.64.177 with SMTP id p17mr791453vds.3.1379077475307; Fri, 13 Sep 2013 06:04:35 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.4.70 with SMTP id i6ls1113766qei.26.gmail; Fri, 13 Sep 2013 06:04:35 -0700 (PDT) X-Received: by 10.52.34.40 with SMTP id w8mr10057351vdi.7.1379077475086; Fri, 13 Sep 2013 06:04:35 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id xt2si3087449vcb.108.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:04:35 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.180 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.180; Received: by mail-vc0-f180.google.com with SMTP id gf11so866808vcb.39 for ; Fri, 13 Sep 2013 06:04:35 -0700 (PDT) X-Received: by 10.220.164.70 with SMTP id d6mr11752849vcy.19.1379077474999; Fri, 13 Sep 2013 06:04:34 -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 u4csp79463vcz; Fri, 13 Sep 2013 06:04:34 -0700 (PDT) X-Received: by 10.68.21.66 with SMTP id t2mr13358209pbe.151.1379077473985; Fri, 13 Sep 2013 06:04:33 -0700 (PDT) Received: from mail-pd0-f174.google.com (mail-pd0-f174.google.com [209.85.192.174]) by mx.google.com with ESMTPS id uh5si11165006pab.151.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:04:33 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.174 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.174; Received: by mail-pd0-f174.google.com with SMTP id y13so1227045pdi.19 for ; Fri, 13 Sep 2013 06:04:33 -0700 (PDT) X-Received: by 10.67.1.228 with SMTP id bj4mr8620355pad.157.1379077473128; Fri, 13 Sep 2013 06:04:33 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id qp10sm17975291pab.13.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:04:32 -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 013/228] cpufreq: acpi-cpufreq: use cpufreq_table_validate_and_show() Date: Fri, 13 Sep 2013 18:29:19 +0530 Message-Id: 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.180 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 a1260b4..71f8e15 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.