Message ID | bb32c408741e1008c39ce62ec03bc76e5ccaa267.1379063063.git.viresh.kumar@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCRIZROPVQPBBP5AZSIQKGQEUBCQP3I@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f71.google.com (mail-yh0-f71.google.com [209.85.213.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9252A20358 for <linaro@patches.linaro.org>; Fri, 13 Sep 2013 13:16:47 +0000 (UTC) Received: by mail-yh0-f71.google.com with SMTP id a41sf1240009yho.6 for <linaro@patches.linaro.org>; Fri, 13 Sep 2013 06:16:47 -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=2A1pYZkCq4CERtF/vZSQ8WudJRHYHvhKBOafbpd2YU4=; b=iCXAkp+8h/1QZYm16k1b5gIJ8YEEtNOIaYlhUSXxql1Xxc7a3WF8hc7QkmZebOAnx4 Q2ZJpLsksbBJ+DYp+pylC7qR/Vy/h7QUYcu2pOM6ESiY1ktL1J+H6+fwhcO5Em3OsgS1 PmoS/K9LXq/8lvlTF+VVj8dXJthO8yDDXYXLRAXMKUU+qXQQFxlYoGnlyLuLeYRCZPTM jVnMBH0QTl59y/TsmahyZiEGLLTh8X/yIZ06DfKW81jRAebgHltVKX0pkP1OYmI19sxm tdYcuH3UhWHpsEe4G9kaEDT8pX5qsjEPG6x6rTTDWJZeEdvzTgUhzLkMtD7F4BUE2cmP S2Og== X-Gm-Message-State: ALoCoQlbWicyeIY4XAfQEp6ekZBrEG3mh08mYMMC+qxw8VjLfe9iN2fMRa0KPM8+bNqN3EmUXBrD X-Received: by 10.236.26.202 with SMTP id c50mr5021763yha.14.1379078207364; Fri, 13 Sep 2013 06:16:47 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.99.10 with SMTP id em10ls1110684qeb.82.gmail; Fri, 13 Sep 2013 06:16:47 -0700 (PDT) X-Received: by 10.52.119.228 with SMTP id kx4mr10042035vdb.12.1379078207150; Fri, 13 Sep 2013 06:16:47 -0700 (PDT) Received: from mail-vb0-f52.google.com (mail-vb0-f52.google.com [209.85.212.52]) by mx.google.com with ESMTPS id zt2si3119307vec.36.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:16:47 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.52 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.52; Received: by mail-vb0-f52.google.com with SMTP id f12so905200vbg.11 for <patchwork-forward@linaro.org>; Fri, 13 Sep 2013 06:16:47 -0700 (PDT) X-Received: by 10.220.11.7 with SMTP id r7mr12031526vcr.12.1379078207076; Fri, 13 Sep 2013 06:16:47 -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 u4csp80120vcz; Fri, 13 Sep 2013 06:16:46 -0700 (PDT) X-Received: by 10.68.255.69 with SMTP id ao5mr13503585pbd.66.1379078205936; Fri, 13 Sep 2013 06:16:45 -0700 (PDT) Received: from mail-pd0-f169.google.com (mail-pd0-f169.google.com [209.85.192.169]) by mx.google.com with ESMTPS id sj5si8107992pab.313.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:16:45 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.169 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.169; Received: by mail-pd0-f169.google.com with SMTP id r10so1252041pdi.28 for <patches@linaro.org>; Fri, 13 Sep 2013 06:16:45 -0700 (PDT) X-Received: by 10.66.145.166 with SMTP id sv6mr15066114pab.31.1379078205524; Fri, 13 Sep 2013 06:16:45 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id cx4sm11710007pbc.24.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:16:45 -0700 (PDT) From: Viresh Kumar <viresh.kumar@linaro.org> 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 <viresh.kumar@linaro.org> Subject: [PATCH 116/228] cpufreq: ppc: don't initialize part of policy that is set by core too Date: Fri, 13 Sep 2013 18:31:02 +0530 Message-Id: <bb32c408741e1008c39ce62ec03bc76e5ccaa267.1379063063.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: <cover.1379063063.git.viresh.kumar@linaro.org> References: <cover.1379063063.git.viresh.kumar@linaro.org> In-Reply-To: <cover.1379063063.git.viresh.kumar@linaro.org> References: <cover.1379063063.git.viresh.kumar@linaro.org> 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.52 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: <patchwork-forward.linaro.org> X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> |
diff --git a/drivers/cpufreq/ppc-corenet-cpufreq.c b/drivers/cpufreq/ppc-corenet-cpufreq.c index befd489..a0f562c 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;
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 <viresh.kumar@linaro.org> --- drivers/cpufreq/ppc-corenet-cpufreq.c | 2 -- 1 file changed, 2 deletions(-)