From patchwork Wed Aug 14 13:32:05 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 19129 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 A2CF62390D for ; Wed, 14 Aug 2013 13:34:55 +0000 (UTC) Received: by mail-qc0-f197.google.com with SMTP id s1sf1800359qcw.8 for ; Wed, 14 Aug 2013 06:34:55 -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=CYDk9dbk4zxKXnWFWOgSyMg4ew0iOgxkPedHXtV4WWk=; b=X834AMni8+HAd1Y7DCvn5f9jm1n1E8v/M9+uOK7qIP5c108DUJVBq5KYnIrHaFYRry b5ZBFZUTVLX/mWWonBLz4K7KaFSR7Ne95iP287IbkJYyj5nQuy6gaJFKG6/itXQQQxd2 bDO3PRRKobITUpbPDI+FI8TDsPQm/8/r9Feo52/Jz2Dm1x8VXbYNWToEVs9OG6NErxgS crqA1EY8BR1hl9SluvpD5F5/XsQFjRM9TwVVyFkM8vcR92VSv4wQsbkhK4t3LGwj5lJ1 WZOW10NYh3YCwT9ZaVdERhsc3023CSPYYOy9H7WdFIYZZrh7J953K8HGa+SrdelxFSbk 91Dw== X-Received: by 10.52.74.68 with SMTP id r4mr2152166vdv.0.1376487295388; Wed, 14 Aug 2013 06:34:55 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.74.102 with SMTP id s6ls3098032qev.17.gmail; Wed, 14 Aug 2013 06:34:55 -0700 (PDT) X-Received: by 10.52.96.100 with SMTP id dr4mr8066683vdb.17.1376487295255; Wed, 14 Aug 2013 06:34:55 -0700 (PDT) Received: from mail-vb0-f45.google.com (mail-vb0-f45.google.com [209.85.212.45]) by mx.google.com with ESMTPS id x9si11023446vec.118.2013.08.14.06.34.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:34:55 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.45 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.45; Received: by mail-vb0-f45.google.com with SMTP id e15so7560330vbg.18 for ; Wed, 14 Aug 2013 06:34:55 -0700 (PDT) X-Gm-Message-State: ALoCoQk8VIfPFfzQsK2gfXPvRbycnYpnL43nSulVETuCW0f/TaAvQFou5cxNTV+lETwg5X1pxjrr X-Received: by 10.52.30.97 with SMTP id r1mr380753vdh.36.1376487295162; Wed, 14 Aug 2013 06:34:55 -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 u4csp213141vcz; Wed, 14 Aug 2013 06:34:54 -0700 (PDT) X-Received: by 10.66.25.102 with SMTP id b6mr9761365pag.129.1376487294258; Wed, 14 Aug 2013 06:34:54 -0700 (PDT) Received: from mail-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) by mx.google.com with ESMTPS id vs7si28254738pbc.205.2013.08.14.06.34.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:34:54 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.46 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.46; Received: by mail-pa0-f46.google.com with SMTP id fa1so10161484pad.33 for ; Wed, 14 Aug 2013 06:34:53 -0700 (PDT) X-Received: by 10.66.221.65 with SMTP id qc1mr1149098pac.179.1376487293790; Wed, 14 Aug 2013 06:34:53 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id kd1sm53359249pab.20.2013.08.14.06.34.50 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:34:53 -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 , Shawn Guo Subject: [PATCH 16/37] cpufreq: imx6q: don't initialize part of policy that is set by core too Date: Wed, 14 Aug 2013 19:02:05 +0530 Message-Id: <8a95b774471b5ca082648551e1ec7f1549dbe33e.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.212.45 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: Shawn Guo Signed-off-by: Viresh Kumar --- drivers/cpufreq/imx6q-cpufreq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/imx6q-cpufreq.c b/drivers/cpufreq/imx6q-cpufreq.c index f6f877c..04a32fb 100644 --- a/drivers/cpufreq/imx6q-cpufreq.c +++ b/drivers/cpufreq/imx6q-cpufreq.c @@ -166,7 +166,6 @@ static int imx6q_cpufreq_init(struct cpufreq_policy *policy) } policy->cpuinfo.transition_latency = transition_latency; - policy->cur = clk_get_rate(arm_clk) / 1000; cpumask_setall(policy->cpus); return 0;