From patchwork Fri Sep 13 13:01:00 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20168 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f198.google.com (mail-qc0-f198.google.com [209.85.216.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4C1FF20358 for ; Fri, 13 Sep 2013 13:16:33 +0000 (UTC) Received: by mail-qc0-f198.google.com with SMTP id l13sf1196988qcy.9 for ; Fri, 13 Sep 2013 06:16:33 -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=V6efRLsSWCjR8qm38J92vUwCfbqrfRKAkOzTxOT/7Rg=; b=HOt87FPOrXGqjZ7LpFf1J+SDXPcqIFAOEAPDVJk75vd56Nps51yuCLiBwy5vuka9d5 tFncLuAGSWgJsVeGAB+sW4Hr83KinYA3FmYS0ZFkTnX5RGoaejS6eW+4RE3Wwq70hU0y TgJgS2vsPbZ2dsERI5RRLQJk1Ptr/rvYUNStfUB9ZnQrznIBNhJN9iqLu/cYggBxPh5M 7YphWTc/qqNFeuxndCfVnYHqOCoGvSY8o57I3hw53HEIX+Qtbil17BDwFEaMO2U24Flz nBKCbSR6oBbM61oSzomRBhJWVKe7DqHKiV/ztB0IRI1rAUjCGFj1T+R5oEg47t0bdLyQ oAmQ== X-Gm-Message-State: ALoCoQlPrfYoWiskSVT6ezgv+PTVvWC/TpkPlt74IPn6ofJtsslQGrEnAaGc+CqH/xLwBoA9Wv44 X-Received: by 10.236.209.103 with SMTP id r67mr5427923yho.35.1379078192997; Fri, 13 Sep 2013 06:16:32 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.35.244 with SMTP id l20ls1123683qej.98.gmail; Fri, 13 Sep 2013 06:16:32 -0700 (PDT) X-Received: by 10.58.118.130 with SMTP id km2mr11902121veb.0.1379078192771; Fri, 13 Sep 2013 06:16:32 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id 4si3098345vcq.122.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:16:32 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.180 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.180; Received: by mail-vc0-f180.google.com with SMTP id gf11so879366vcb.25 for ; Fri, 13 Sep 2013 06:16:32 -0700 (PDT) X-Received: by 10.52.165.131 with SMTP id yy3mr5977483vdb.25.1379078192698; Fri, 13 Sep 2013 06:16:32 -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 u4csp80107vcz; Fri, 13 Sep 2013 06:16:32 -0700 (PDT) X-Received: by 10.68.59.38 with SMTP id w6mr12397355pbq.135.1379078191827; Fri, 13 Sep 2013 06:16:31 -0700 (PDT) Received: from mail-pa0-f45.google.com (mail-pa0-f45.google.com [209.85.220.45]) by mx.google.com with ESMTPS id ct5si7451233pbb.101.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:16:31 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.45 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.45; Received: by mail-pa0-f45.google.com with SMTP id bg4so2492313pad.32 for ; Fri, 13 Sep 2013 06:16:31 -0700 (PDT) X-Received: by 10.68.191.36 with SMTP id gv4mr8869269pbc.167.1379078191417; Fri, 13 Sep 2013 06:16:31 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id xs1sm18062711pac.7.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:16:30 -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 114/228] cpufreq: pmac: don't initialize part of policy that is set by core too Date: Fri, 13 Sep 2013 18:31:00 +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.180 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 8715ab9..672b7f4 100644 --- a/drivers/cpufreq/pmac32-cpufreq.c +++ b/drivers/cpufreq/pmac32-cpufreq.c @@ -396,7 +396,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 e853b85..79e40c9 100644 --- a/drivers/cpufreq/pmac64-cpufreq.c +++ b/drivers/cpufreq/pmac64-cpufreq.c @@ -348,7 +348,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. */