From patchwork Wed Aug 14 13:32: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: 19138 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f72.google.com (mail-qe0-f72.google.com [209.85.128.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7DF062390D for ; Wed, 14 Aug 2013 13:35:57 +0000 (UTC) Received: by mail-qe0-f72.google.com with SMTP id a11sf9974994qen.7 for ; Wed, 14 Aug 2013 06:35:57 -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=OsW+GXfubVsUIjI9QgQdAEeRwSXVMuRQIBs5fwMyvKE=; b=Gzm5XdzuQmMoH4L5COEHWIB19d314w6frPn84CghWiibaOH7/6NMIG7exzz0xq0B3Y PP4tKCerslfTbh8vj8YfxsgdC9bOkSIjmXLNWWqBHYG7851NHWRhgmQhpyo2jGTfgdMb VifODFISTLRgz+L/LAQoyRBwSJCYow4isu4JuZSkGAP1SKl4LZwL5eZAADMU5omYIwSQ pyTDZAgVEF70NLG+n5lDvoZ5G6JWwIHg5LWe8FDrMNGYGGMp9M5jPgTHl+Sqe+YEoL/P 9GSZWef7cNvs9hYGgS9824dzCx8cWQZT0cfoxz2DHgoNIkm7AIAyHgcnVGo37dJINFLS LVAQ== X-Received: by 10.58.229.65 with SMTP id so1mr2406610vec.33.1376487357221; Wed, 14 Aug 2013 06:35:57 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.119.9 with SMTP id kq9ls3279772qeb.48.gmail; Wed, 14 Aug 2013 06:35:57 -0700 (PDT) X-Received: by 10.220.45.132 with SMTP id e4mr89962vcf.56.1376487357073; Wed, 14 Aug 2013 06:35:57 -0700 (PDT) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id gr9si11020992vec.149.2013.08.14.06.35.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:35:57 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.178 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.178; Received: by mail-vc0-f178.google.com with SMTP id ha12so5054123vcb.23 for ; Wed, 14 Aug 2013 06:35:57 -0700 (PDT) X-Gm-Message-State: ALoCoQnV43kMzejeIou1ssXoKyuaE5d5AVl8vYzp/VEgcJVE1rZeXKDm18e6X282VYeP9jJphdPn X-Received: by 10.58.118.70 with SMTP id kk6mr9632625veb.1.1376487356977; Wed, 14 Aug 2013 06:35:56 -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 u4csp213222vcz; Wed, 14 Aug 2013 06:35:56 -0700 (PDT) X-Received: by 10.68.228.201 with SMTP id sk9mr9971078pbc.4.1376487356106; Wed, 14 Aug 2013 06:35:56 -0700 (PDT) Received: from mail-pa0-f52.google.com (mail-pa0-f52.google.com [209.85.220.52]) by mx.google.com with ESMTPS id qb10si29407347pac.104.2013.08.14.06.35.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:35:56 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.52 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.52; Received: by mail-pa0-f52.google.com with SMTP id kq13so10047132pab.25 for ; Wed, 14 Aug 2013 06:35:55 -0700 (PDT) X-Received: by 10.66.154.162 with SMTP id vp2mr9814839pab.126.1376487355706; Wed, 14 Aug 2013 06:35:55 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id il4sm50346410pbb.36.2013.08.14.06.35.52 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:35:55 -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 Subject: [PATCH 25/37] cpufreq: pmac: don't initialize part of policy that is set by core too Date: Wed, 14 Aug 2013 19:02:14 +0530 Message-Id: <345a99e64efed233ce2f42183d8a7b4e45712f1e.1376486713.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.178 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(). Signed-off-by: Viresh Kumar --- drivers/cpufreq/pmac32-cpufreq.c | 1 - drivers/cpufreq/pmac64-cpufreq.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/cpufreq/pmac32-cpufreq.c b/drivers/cpufreq/pmac32-cpufreq.c index b1ba708..47c227c 100644 --- a/drivers/cpufreq/pmac32-cpufreq.c +++ b/drivers/cpufreq/pmac32-cpufreq.c @@ -389,7 +389,6 @@ static int pmac_cpufreq_cpu_init(struct cpufreq_policy *policy) return -ENODEV; policy->cpuinfo.transition_latency = transition_latency; - policy->cur = cur_freq; return cpufreq_table_validate_and_show(policy, pmac_cpu_freqs); } diff --git a/drivers/cpufreq/pmac64-cpufreq.c b/drivers/cpufreq/pmac64-cpufreq.c index 7679990..63f9642 100644 --- a/drivers/cpufreq/pmac64-cpufreq.c +++ b/drivers/cpufreq/pmac64-cpufreq.c @@ -338,7 +338,6 @@ static unsigned int g5_cpufreq_get_speed(unsigned int cpu) static int g5_cpufreq_cpu_init(struct cpufreq_policy *policy) { policy->cpuinfo.transition_latency = transition_latency; - policy->cur = g5_cpu_freqs[g5_query_freq()].frequency; /* secondary CPUs are tied to the primary one by the * cpufreq core if in the secondary policy we tell it that * it actually must be one policy together with all others. */