From patchwork Wed Aug 14 13:32:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 19149 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 071122390D for ; Wed, 14 Aug 2013 13:37:15 +0000 (UTC) Received: by mail-vc0-f197.google.com with SMTP id ha11sf5486822vcb.0 for ; Wed, 14 Aug 2013 06:37:15 -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=dSvF6z9xVpdvXcEIWV4PWQCOuke/WCl48/i+hqeG3SE=; b=Wyfk8rGhFWMeQZUBJYoVsMPdaFiGEYxz99E4WPhl2zYg3ExRSAzEOZ2rwrB22SIKnD LldxsRp29B85+HaByLYF+P8+P+2dBbkYzXPG4YXFb5DqlV6iYOesrM1JTn86EOu1lenQ O71khZzqVTZ9j6Vxb5Xq4XYv/70ypdjIe2viYRb17BO73idcKhneV/Om6YZ+aBGdiSeK sVqdaylA9ix4ZAMbvGE/t5JhuI9PVaBlmwL+VYLJa7Tk1R4NYuv4M/wU6UZa0hrEB0Ph nrT04MNBtAismlamOzmtQ/h71vzpbFPjx23ErFu6EJGCcNCrGLQuEgFwTta3QHMdMUfs tnHg== X-Received: by 10.58.212.167 with SMTP id nl7mr2451439vec.4.1376487435773; Wed, 14 Aug 2013 06:37:15 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.11.230 with SMTP id t6ls589937qeb.33.gmail; Wed, 14 Aug 2013 06:37:15 -0700 (PDT) X-Received: by 10.52.117.79 with SMTP id kc15mr94549vdb.45.1376487435676; Wed, 14 Aug 2013 06:37:15 -0700 (PDT) Received: from mail-vb0-f47.google.com (mail-vb0-f47.google.com [209.85.212.47]) by mx.google.com with ESMTPS id fw17si11028026vec.104.2013.08.14.06.37.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:37:15 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.47 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.47; Received: by mail-vb0-f47.google.com with SMTP id h10so7647884vbh.34 for ; Wed, 14 Aug 2013 06:37:15 -0700 (PDT) X-Gm-Message-State: ALoCoQlOvkCSYvq53oOa0EsJqlj3kbCmIAIPr3v+ecndIr1dUydl89X+12cOo2O7K7bYlMoFGy8+ X-Received: by 10.220.110.202 with SMTP id o10mr9497363vcp.1.1376487435597; Wed, 14 Aug 2013 06:37:15 -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 u4csp213286vcz; Wed, 14 Aug 2013 06:37:15 -0700 (PDT) X-Received: by 10.68.211.194 with SMTP id ne2mr10098288pbc.40.1376487434822; Wed, 14 Aug 2013 06:37:14 -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 yk3si29373722pac.302.2013.08.14.06.37.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:37:14 -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 uo5so9396418pbc.37 for ; Wed, 14 Aug 2013 06:37:14 -0700 (PDT) X-Received: by 10.66.145.138 with SMTP id su10mr9855850pab.32.1376487434411; Wed, 14 Aug 2013 06:37:14 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id pw9sm22725986pbb.20.2013.08.14.06.37.10 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:37:13 -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, Viresh Kumar , Stephen Warren Subject: [PATCH 36/37] cpufreq: tegra: don't initialize part of policy that is set by core too Date: Wed, 14 Aug 2013 19:02:25 +0530 Message-Id: <8c24c90d0f61ccf4570b84ea43b894e9c23095cd.1376486714.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.47 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 ee2cf8f3..3c2b12b 100644 --- a/drivers/cpufreq/tegra-cpufreq.c +++ b/drivers/cpufreq/tegra-cpufreq.c @@ -205,8 +205,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;