From patchwork Fri Sep 13 13:01:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20179 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f70.google.com (mail-yh0-f70.google.com [209.85.213.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 20F8B20358 for ; Fri, 13 Sep 2013 13:17:51 +0000 (UTC) Received: by mail-yh0-f70.google.com with SMTP id i72sf1243598yha.5 for ; Fri, 13 Sep 2013 06:17:50 -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=3SFTcudW+oIBQ+RKNroxel34f5ItCUIOz+O7wE7Jimg=; b=dzG4wySbk7lU3Mf434X1FFlCK+QcFkRgqL41CK0TXtN35X22SgGnW+wN7veDxMmRk1 INSpx4n1LR+cSZBvdpRXnz7JBbE8fewWa+28YwZTTIfcVj3tq1bBXxx9jPAvnBEaekKN 0g4mKKhzilocq9uhWaNeb8uEXMdc0lLAkaCBmi5I60qppivAGvhlQP9gWMksj+X4xxUT B4gfdn+X8d3WfR+y5TgDX8YKjH4xzMCRUVrynDU2zPj2yDLppSVwDu4oBcEcgPK25MaS k25PjufnIreBYKy3E3YhVWz+s9l6w/qSK96ABzLVO90Pi95E6xmWN4gxfz9pFdo+Emw4 Kixg== X-Gm-Message-State: ALoCoQmPAoTNiGnX04zyRYhuwgdQ9XraAjw8Kr8JgShFoTpgtjPxx4ovZ+spMN8H3Rr1QV6aEfkO X-Received: by 10.236.2.5 with SMTP id 5mr4955889yhe.23.1379078270830; Fri, 13 Sep 2013 06:17:50 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.28.10 with SMTP id x10ls1216395qeg.20.gmail; Fri, 13 Sep 2013 06:17:50 -0700 (PDT) X-Received: by 10.52.119.139 with SMTP id ku11mr45290vdb.42.1379078270624; Fri, 13 Sep 2013 06:17:50 -0700 (PDT) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by mx.google.com with ESMTPS id sc5si3120665vdc.9.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:17:50 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.181 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.181; Received: by mail-vc0-f181.google.com with SMTP id hz10so885165vcb.40 for ; Fri, 13 Sep 2013 06:17:50 -0700 (PDT) X-Received: by 10.220.144.68 with SMTP id y4mr780432vcu.28.1379078270552; Fri, 13 Sep 2013 06:17:50 -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 u4csp80186vcz; Fri, 13 Sep 2013 06:17:50 -0700 (PDT) X-Received: by 10.68.125.226 with SMTP id mt2mr13456929pbb.115.1379078269513; Fri, 13 Sep 2013 06:17:49 -0700 (PDT) Received: from mail-pd0-f175.google.com (mail-pd0-f175.google.com [209.85.192.175]) by mx.google.com with ESMTPS id hk5si11152950pac.299.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:17:49 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.175 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.175; Received: by mail-pd0-f175.google.com with SMTP id q10so1236827pdj.6 for ; Fri, 13 Sep 2013 06:17:49 -0700 (PDT) X-Received: by 10.68.211.10 with SMTP id my10mr8609430pbc.170.1379078268935; Fri, 13 Sep 2013 06:17:48 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id yo2sm18066694pab.8.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:17:48 -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 , Stephen Warren Subject: [PATCH 125/228] cpufreq: tegra: don't initialize part of policy that is set by core too Date: Fri, 13 Sep 2013 18:31:11 +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.181 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: , Many common initializations of struct policy are moved to core now and hence this driver doesn't need to do it. This patch removes such code. Most recent of those changes is to call ->get() in the core after calling ->init(). Cc: Stephen Warren Signed-off-by: Viresh Kumar --- drivers/cpufreq/tegra-cpufreq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/cpufreq/tegra-cpufreq.c b/drivers/cpufreq/tegra-cpufreq.c index c36a8e7..9c32b23 100644 --- a/drivers/cpufreq/tegra-cpufreq.c +++ b/drivers/cpufreq/tegra-cpufreq.c @@ -211,8 +211,7 @@ static int tegra_cpu_init(struct cpufreq_policy *policy) clk_prepare_enable(cpu_clk); cpufreq_table_validate_and_show(policy, freq_table); - policy->cur = tegra_getspeed(policy->cpu); - target_cpu_speed[policy->cpu] = policy->cur; + target_cpu_speed[policy->cpu] = tegra_getspeed(policy->cpu); /* FIXME: what's the actual transition time? */ policy->cpuinfo.transition_latency = 300 * 1000;