From patchwork Wed Aug 14 13:32:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 19140 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f197.google.com (mail-qc0-f197.google.com [209.85.216.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B1E4A2390D for ; Wed, 14 Aug 2013 13:36:12 +0000 (UTC) Received: by mail-qc0-f197.google.com with SMTP id s1sf10988418qcw.4 for ; Wed, 14 Aug 2013 06:36:12 -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=9VClyU2Oq8Kswz1/d15z3SIWBAvMq+PUGd/md6/GVk0=; b=S1yCMfoeq23w32e1hW96PUfrzg83Hq3WblhOdbneWCD927BTnpC31EloLQWF9NiiBA swHKT5wNb9j0vrLQIrpMdF8S+6C/NfjFK2h+hl1deTpSsd+WCUCgExOHGO5af+tu6Gel wNNqGxzJxD1Tcia7H6fO8vUzwDb2gwKbIQxc1O/WSS75LQSXXupLXE3Omq38oDpT3k02 PGdmws9KF5M0MnAyR1D4h2s2Ib+nc4pS8pbBansn5UR/nZ0P3tg9dgfNomd0gPWPrD85 /q2vtWy5TTLnJnSCMxcoOp7cBCjZzWZRhCLKvgKY/8tX19hiz0Lj2lajaV/cv/wy8c4u sgRw== X-Received: by 10.58.69.101 with SMTP id d5mr2444426veu.23.1376487372457; Wed, 14 Aug 2013 06:36:12 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.94.72 with SMTP id da8ls3207108qeb.49.gmail; Wed, 14 Aug 2013 06:36:12 -0700 (PDT) X-Received: by 10.220.182.69 with SMTP id cb5mr111099vcb.41.1376487372322; Wed, 14 Aug 2013 06:36:12 -0700 (PDT) Received: from mail-ve0-f171.google.com (mail-ve0-f171.google.com [209.85.128.171]) by mx.google.com with ESMTPS id b5si759907vcf.54.2013.08.14.06.36.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:36:12 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.171; Received: by mail-ve0-f171.google.com with SMTP id pa12so7629199veb.2 for ; Wed, 14 Aug 2013 06:36:12 -0700 (PDT) X-Gm-Message-State: ALoCoQku+uaqzQb2I/E9BKIDSZULKimUB3TUQ56O5E8d1dr5vOR5DXw4dcrhpZfSoz8K6Gn7UOXL X-Received: by 10.58.211.7 with SMTP id my7mr92613vec.54.1376487372239; Wed, 14 Aug 2013 06:36:12 -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 u4csp213238vcz; Wed, 14 Aug 2013 06:36:11 -0700 (PDT) X-Received: by 10.68.233.134 with SMTP id tw6mr10063764pbc.9.1376487371202; Wed, 14 Aug 2013 06:36:11 -0700 (PDT) Received: from mail-pd0-f178.google.com (mail-pd0-f178.google.com [209.85.192.178]) by mx.google.com with ESMTPS id zr1si28298228pbc.30.2013.08.14.06.36.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:36:11 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.178 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.178; Received: by mail-pd0-f178.google.com with SMTP id w10so6291448pde.23 for ; Wed, 14 Aug 2013 06:36:10 -0700 (PDT) X-Received: by 10.68.189.194 with SMTP id gk2mr1000861pbc.194.1376487370812; Wed, 14 Aug 2013 06:36:10 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id s6sm53383409pan.12.2013.08.14.06.36.06 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:36:09 -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 27/37] cpufreq: ppc: don't initialize part of policy that is set by core too Date: Wed, 14 Aug 2013 19:02:16 +0530 Message-Id: <6d1a3aaecc51dddffbad4dbf792df4ad238a9c5d.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.128.171 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/ppc-corenet-cpufreq.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/cpufreq/ppc-corenet-cpufreq.c b/drivers/cpufreq/ppc-corenet-cpufreq.c index 243a396..79d8e9c 100644 --- a/drivers/cpufreq/ppc-corenet-cpufreq.c +++ b/drivers/cpufreq/ppc-corenet-cpufreq.c @@ -217,8 +217,6 @@ static int corenet_cpufreq_cpu_init(struct cpufreq_policy *policy) per_cpu(cpu_data, i) = data; policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL; - policy->cur = corenet_cpufreq_get_speed(policy->cpu); - of_node_put(np); return 0;