From patchwork Fri Sep 13 12:59:29 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20077 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f197.google.com (mail-qc0-f197.google.com [209.85.216.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C8E9D202E6 for ; Fri, 13 Sep 2013 13:05:47 +0000 (UTC) Received: by mail-qc0-f197.google.com with SMTP id r5sf1192728qcx.4 for ; Fri, 13 Sep 2013 06:05:47 -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=XAIDVIijuNYeNzTjKkhw3uWFfkVusy9SS44U5TO0jwQ=; b=RkMrSSGDNaTclo/rIToyToKoJ2XA7riGw1NBp0xo5fzgfbSj9PwoYb4AOnXlh2olvx SJmFV1+BlFOPj+Mbih17G1laju4V7pxJe/+LxgoDrHXJ/jitnzE3TAMmhLvkKtxxVP9T gyisDAP1ANBJJZhm1ScR8AWTANH/UHodbV71TXbJmswpG0s4ODKhrZBBylpAELu/X4ZX R20Hcg2hGNkaVSc70a+wQpGcAAKZkNq0kB5X4ucoc/+hMJZoX5ym8Ts8Lsk4llR8+Ooe akslOEFkp109KL9VO5is3Uec2M5X7u6MoNg38LrbOCj8Dol65sMWJM3j+Ud5f1Y9qt/r e7eQ== X-Gm-Message-State: ALoCoQliH/k1E5rSrfd/p/rZIsluQQ1QEF13XnoeDp81ierkoJSvbkuEIkxVzFOwnqUxPOdEag+Q X-Received: by 10.236.207.103 with SMTP id m67mr5001950yho.1.1379077547548; Fri, 13 Sep 2013 06:05:47 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.12.20 with SMTP id u20ls1189661qeb.92.gmail; Fri, 13 Sep 2013 06:05:47 -0700 (PDT) X-Received: by 10.52.232.165 with SMTP id tp5mr9956061vdc.11.1379077547342; Fri, 13 Sep 2013 06:05:47 -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 zw10si3106717vdb.5.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:05:47 -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 gf12so878476vcb.8 for ; Fri, 13 Sep 2013 06:05:47 -0700 (PDT) X-Received: by 10.58.108.74 with SMTP id hi10mr12091303veb.14.1379077547247; Fri, 13 Sep 2013 06:05:47 -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 u4csp79542vcz; Fri, 13 Sep 2013 06:05:46 -0700 (PDT) X-Received: by 10.68.247.36 with SMTP id yb4mr13456225pbc.138.1379077546250; Fri, 13 Sep 2013 06:05:46 -0700 (PDT) Received: from mail-pd0-f173.google.com (mail-pd0-f173.google.com [209.85.192.173]) by mx.google.com with ESMTPS id l10si11219547pav.4.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:05:46 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.173 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.173; Received: by mail-pd0-f173.google.com with SMTP id p10so1222396pdj.32 for ; Fri, 13 Sep 2013 06:05:45 -0700 (PDT) X-Received: by 10.68.64.231 with SMTP id r7mr13290920pbs.134.1379077545825; Fri, 13 Sep 2013 06:05:45 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id gh9sm11632309pbc.40.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:05:45 -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 , Tony Luck Subject: [PATCH 023/228] cpufreq: ia64-acpi: use cpufreq_table_validate_and_show() Date: Fri, 13 Sep 2013 18:29:29 +0530 Message-Id: <2b8c89862530b7be0ece1e9aa2cce7b5f0a8ed0f.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-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(). Cc: Tony Luck Signed-off-by: Viresh Kumar --- drivers/cpufreq/ia64-acpi-cpufreq.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/cpufreq/ia64-acpi-cpufreq.c b/drivers/cpufreq/ia64-acpi-cpufreq.c index 3e14f03..6cfad51 100644 --- a/drivers/cpufreq/ia64-acpi-cpufreq.c +++ b/drivers/cpufreq/ia64-acpi-cpufreq.c @@ -335,7 +335,7 @@ acpi_cpufreq_cpu_init ( } } - result = cpufreq_frequency_table_cpuinfo(policy, data->freq_table); + result = cpufreq_table_validate_and_show(policy, data->freq_table); if (result) { goto err_freqfree; } @@ -356,8 +356,6 @@ acpi_cpufreq_cpu_init ( (u32) data->acpi_data.states[i].status, (u32) data->acpi_data.states[i].control); - 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. */ data->resume = 1;