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: 2841258 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 15EF2BF546 for ; Thu, 8 Aug 2013 14:44:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 071312045A for ; Thu, 8 Aug 2013 14:44:45 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C1DBC20378 for ; Thu, 8 Aug 2013 14:44:43 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V7Qdm-0004UT-Oh; Thu, 08 Aug 2013 13:52:35 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1V7Qd0-0004W6-1m; Thu, 08 Aug 2013 13:51:46 +0000 Received: from mail-pb0-f50.google.com ([209.85.160.50]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V7Qc3-0004Gz-Ql for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2013 13:50:49 +0000 Received: by mail-pb0-f50.google.com with SMTP id uo5so3213034pbc.23 for ; Thu, 08 Aug 2013 06:50:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=ydxGj1sQF8k3JULRWh1kGs1vGZhlw5JAiucU/92Vk1c=; b=OagM81vzeaVUI731U81tZqiFxLgMzJzOXW3w2v0eJctBfueSjdjPLIan8RkO8yyhBj E7lnvzWVMVtd0ztk9SKVYqc9h4+LhLBxOrRM1/fBuABl/Dvb+jXEQ6MqE2/3aBlMdd61 BEg1yWP+btrgEymYu//jdhRSi2JM04YS+O5WuGxbl51OZm7VvMCYWLGDcngrGrmdiEsv N/TMbsSrF2qDUaTDXA3VlRYWpYlZad9qrXagk/vIA8S+Ytg9Cbg+RNgq/Uyrh3JVmMen ponJlPzNtKiinT8gmrNr7ilg72LZvmMS5enTwaD3s4l4Se8HTp4wVbEZq97dNqqoEf6A wlkA== X-Gm-Message-State: ALoCoQltGa3B58WksQ2bHxxpatMI0hNAOk+HPMyb5AAPlvu0tCioitA3vcGI8+cwPRhUP/H4k+HR 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 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130808_095047_994454_9A726558 X-CRM114-Status: UNSURE ( 9.63 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, Viresh Kumar , patches@linaro.org, linux-kernel@vger.kernel.org, cpufreq@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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; }