From patchwork Fri Sep 13 13:00:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20160 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f70.google.com (mail-qe0-f70.google.com [209.85.128.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id AF71920358 for ; Fri, 13 Sep 2013 13:15:36 +0000 (UTC) Received: by mail-qe0-f70.google.com with SMTP id b4sf1224374qen.1 for ; Fri, 13 Sep 2013 06:15:36 -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=JGP7i9TYg+ctvYJ1UxljrBXdcPNCSRhNazmvYxIY/ws=; b=Fw4pCEx4jC+7VI12zwi6IjuFJtfhe2O5U0Xcsi7LQBwODGrNTDBxtOAhSrzXcM6nXk bZTUpAiWJEMToDNq/zofgn0zVNorcmUHtMt8e8zrZ7T1RfbWJHw64D/aAPS799gy3hQv pelSyu3ogBykrnP9gfBXR6x5LMJ9wFd5lGpNtUS5O+hcp2PHTPXaKzqM4CLF0rrjHilp wIrwpk27X7wUenfnLZvpkL+gvQNSV0ctPQ5W0dOqLe8HrWK8z5XaczNof5Xb04lVE1mg Pyck7bfsI/+QDecm2HRQZUW3uTSj2x9zTPP1JhGvb674SRUdJ2EJc+Ka99KGhH0KHcYb jx0A== X-Gm-Message-State: ALoCoQndhvdP//b5w9pi8tPPruhoTHFu6jJTvtygwHzbiSn7s2nZ9O1/sUt3vZlSAPvE1WdDANOt X-Received: by 10.236.6.134 with SMTP id 6mr5288634yhn.7.1379078136518; Fri, 13 Sep 2013 06:15:36 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.35.43 with SMTP id e11ls1145444qej.54.gmail; Fri, 13 Sep 2013 06:15:36 -0700 (PDT) X-Received: by 10.221.44.136 with SMTP id ug8mr11951030vcb.13.1379078136318; Fri, 13 Sep 2013 06:15:36 -0700 (PDT) Received: from mail-vb0-f42.google.com (mail-vb0-f42.google.com [209.85.212.42]) by mx.google.com with ESMTPS id k10si3114891vca.49.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:15:36 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.42 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.42; Received: by mail-vb0-f42.google.com with SMTP id e12so923925vbg.1 for ; Fri, 13 Sep 2013 06:15:36 -0700 (PDT) X-Received: by 10.58.133.66 with SMTP id pa2mr11845458veb.18.1379078136243; Fri, 13 Sep 2013 06:15:36 -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 u4csp80063vcz; Fri, 13 Sep 2013 06:15:35 -0700 (PDT) X-Received: by 10.68.170.133 with SMTP id am5mr13399685pbc.104.1379078135352; Fri, 13 Sep 2013 06:15:35 -0700 (PDT) Received: from mail-pd0-f180.google.com (mail-pd0-f180.google.com [209.85.192.180]) by mx.google.com with ESMTPS id vs3si11210197pab.114.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:15:35 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.180 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.180; Received: by mail-pd0-f180.google.com with SMTP id y10so1224809pdj.39 for ; Fri, 13 Sep 2013 06:15:34 -0700 (PDT) X-Received: by 10.68.98.36 with SMTP id ef4mr13471098pbb.27.1379078134676; Fri, 13 Sep 2013 06:15:34 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id gg10sm11680853pbc.46.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:15:34 -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 , Russell King Subject: [PATCH 106/228] cpufreq: integrator: don't initialize part of policy that is set by core too Date: Fri, 13 Sep 2013 18:30:52 +0530 Message-Id: <6d8d406ebca886e5147191cc8c333d926ef9eb30.1379063063.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.42 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: Russell King Signed-off-by: Viresh Kumar Signed-off-by: Viresh Kumar --- drivers/cpufreq/integrator-cpufreq.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/cpufreq/integrator-cpufreq.c b/drivers/cpufreq/integrator-cpufreq.c index 8152a9b..babf3e4 100644 --- a/drivers/cpufreq/integrator-cpufreq.c +++ b/drivers/cpufreq/integrator-cpufreq.c @@ -181,10 +181,9 @@ static int integrator_cpufreq_init(struct cpufreq_policy *policy) { /* set default policy and cpuinfo */ - policy->cpuinfo.max_freq = 160000; - policy->cpuinfo.min_freq = 12000; + policy->max = policy->cpuinfo.max_freq = 160000; + policy->min = policy->cpuinfo.min_freq = 12000; policy->cpuinfo.transition_latency = 1000000; /* 1 ms, assumed */ - policy->cur = policy->min = policy->max = integrator_get(policy->cpu); return 0; }