From patchwork Thu Aug 8 13:48:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18861 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f198.google.com (mail-ye0-f198.google.com [209.85.213.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 61327246A4 for ; Thu, 8 Aug 2013 13:50:23 +0000 (UTC) Received: by mail-ye0-f198.google.com with SMTP id m12sf3431770yen.5 for ; Thu, 08 Aug 2013 06:50:23 -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=ydxGj1sQF8k3JULRWh1kGs1vGZhlw5JAiucU/92Vk1c=; b=jwXNN7kayIa5l/Hd0bFS7UxngbuUIzXnYgv84rh7+hKdCu/q9/76cUx45Rcz/3VPn4 1iQcB87i4cL8nv3Z2mv+m46arCJSyflKhdzqIgiqzBHqRcjBc6+ToVtXOZFbSp3dvSR/ gGU44r/377oisK7ivOlyCA4TyNqtQ6oBSv7KGpqtPZY0iUqMBkiiJwnN77NxXc5rBWuG ChqNSIpH2MEeIpy14/ivayHv0fiPD9Vsz66hWtnGiyet51Fv7dxRcRNxR/HncodscxJd Eq5rDpnftSoJIeW7uFxujR8JRS4/aS8KDJMrBZE/UyAaS4GoONmrQ3lhVEXGAq8PnXZG sDJw== X-Received: by 10.236.131.210 with SMTP id m58mr3285325yhi.45.1375969823136; Thu, 08 Aug 2013 06:50:23 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.82.101 with SMTP id h5ls1047274qey.91.gmail; Thu, 08 Aug 2013 06:50:23 -0700 (PDT) X-Received: by 10.220.101.197 with SMTP id d5mr3973422vco.59.1375969822989; Thu, 08 Aug 2013 06:50:22 -0700 (PDT) Received: from mail-vb0-f48.google.com (mail-vb0-f48.google.com [209.85.212.48]) by mx.google.com with ESMTPS id sy7si3083841vdc.144.2013.08.08.06.50.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:50:22 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.48 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.48; Received: by mail-vb0-f48.google.com with SMTP id w16so3198141vbf.7 for ; Thu, 08 Aug 2013 06:50:22 -0700 (PDT) X-Gm-Message-State: ALoCoQlylURPrX1E+gaJS1suKWiOopGu8qDM8dCeRHLdiU/FGAQ2hcpshlWMKf6Jo/BbQgco187G X-Received: by 10.52.117.208 with SMTP id kg16mr2720071vdb.48.1375969822906; Thu, 08 Aug 2013 06:50:22 -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 u4csp16755vcz; Thu, 8 Aug 2013 06:50:22 -0700 (PDT) X-Received: by 10.68.178.197 with SMTP id da5mr2568131pbc.79.1375969822069; Thu, 08 Aug 2013 06:50:22 -0700 (PDT) Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) by mx.google.com with ESMTPS id qf5si9748552pac.211.2013.08.08.06.50.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:50:22 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.43 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.43; Received: by mail-pa0-f43.google.com with SMTP id hz10so3471954pad.2 for ; Thu, 08 Aug 2013 06:50:21 -0700 (PDT) X-Received: by 10.68.254.73 with SMTP id ag9mr6222696pbd.54.1375969821681; Thu, 08 Aug 2013 06:50:21 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id il4sm14366912pbb.36.2013.08.08.06.50.17 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:50:21 -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 12/35] cpufreq: e_powersaver: use cpufreq_table_validate_and_show() Date: Thu, 8 Aug 2013 19:18:14 +0530 Message-Id: <557aa7077de100ce67198fa36973b37703aa37c6.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.212.48 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/e_powersaver.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/cpufreq/e_powersaver.c b/drivers/cpufreq/e_powersaver.c index 09f64cc..c1b7c99 100644 --- a/drivers/cpufreq/e_powersaver.c +++ b/drivers/cpufreq/e_powersaver.c @@ -403,13 +403,12 @@ static int eps_cpu_init(struct cpufreq_policy *policy) policy->cpuinfo.transition_latency = 140000; /* 844mV -> 700mV in ns */ policy->cur = fsb * current_multiplier; - ret = cpufreq_frequency_table_cpuinfo(policy, ¢aur->freq_table[0]); + ret = cpufreq_table_validate_and_show(policy, ¢aur->freq_table[0]); if (ret) { kfree(centaur); return ret; } - cpufreq_frequency_table_get_attr(¢aur->freq_table[0], policy->cpu); return 0; }