From patchwork Thu Aug 8 13:48:17 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18864 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f197.google.com (mail-vc0-f197.google.com [209.85.220.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2819F246A4 for ; Thu, 8 Aug 2013 13:50:45 +0000 (UTC) Received: by mail-vc0-f197.google.com with SMTP id ha11sf127245vcb.8 for ; Thu, 08 Aug 2013 06:50:44 -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=XAIDVIijuNYeNzTjKkhw3uWFfkVusy9SS44U5TO0jwQ=; b=la2hCw/Kn9dK8Ypn/FxE0L4luDG2ysNguuHSQ/y9RQ81f8lb9XrVS0r0xmw98agBJf McWKnls9pUCBFhre3Kg3oynYn8tsWj6I3dGloZy6arFDbf2BFWGI95ctBiIhIdxKlD1+ HL09p2DocjuV//Xzz/xNnQcRqcRl+y9scy5bkq+NSYJ5nSrXqOu6TP01MRYmLaL24YTP eA1vvXerSwSZEdJfrcDI2I+MK9ZaQAesKPxaW1RuYpO+/imltBakj5lHtS4UjLF6STUg nG9kwA/63MXn0LzYs7tm69TtTBZhJw8aV5SSFMoM8ls2AIZIXOcROaGc+a6KjUQj7ImL wrMg== X-Received: by 10.236.148.33 with SMTP id u21mr3153792yhj.37.1375969844670; Thu, 08 Aug 2013 06:50:44 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.24.171 with SMTP id v11ls470545qef.13.gmail; Thu, 08 Aug 2013 06:50:44 -0700 (PDT) X-Received: by 10.220.98.212 with SMTP id r20mr4005180vcn.48.1375969844512; Thu, 08 Aug 2013 06:50:44 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id xb6si3090459vdb.94.2013.08.08.06.50.44 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:50:44 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.173 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.173; Received: by mail-vc0-f173.google.com with SMTP id id13so118797vcb.18 for ; Thu, 08 Aug 2013 06:50:44 -0700 (PDT) X-Gm-Message-State: ALoCoQmOo2d+lU57NVRUizKB1ejEp2z40ZSbEHleNXUARpgFNp21sQvGyc1eYQYep3ZWbdsh9R87 X-Received: by 10.58.128.71 with SMTP id nm7mr3155989veb.51.1375969844425; Thu, 08 Aug 2013 06:50:44 -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 u4csp16774vcz; Thu, 8 Aug 2013 06:50:43 -0700 (PDT) X-Received: by 10.66.102.41 with SMTP id fl9mr6167988pab.169.1375969843542; Thu, 08 Aug 2013 06:50:43 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id xq4si9761927pab.144.2013.08.08.06.50.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:50:43 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.50; Received: by mail-pb0-f50.google.com with SMTP id uo5so3257010pbc.37 for ; Thu, 08 Aug 2013 06:50:43 -0700 (PDT) X-Received: by 10.66.246.133 with SMTP id xw5mr6063629pac.114.1375969843116; Thu, 08 Aug 2013 06:50:43 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id 7sm16679189paf.22.2013.08.08.06.50.39 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:50:42 -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 15/35] cpufreq: ia64-acpi: use cpufreq_table_validate_and_show() Date: Thu, 8 Aug 2013 19:18:17 +0530 Message-Id: <2787686052efa74fdb05d3fd429187684af642fa.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.173 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;