From patchwork Fri Sep 13 13:00:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20159 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f200.google.com (mail-vc0-f200.google.com [209.85.220.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0889D20358 for ; Fri, 13 Sep 2013 13:15:30 +0000 (UTC) Received: by mail-vc0-f200.google.com with SMTP id hf12sf1191622vcb.11 for ; Fri, 13 Sep 2013 06:15:29 -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=SOKaW41LTqPgDa4m1Cpa8ygE8v9ZNvZXD1GMj89mn/U=; b=D0Zt4bQliWUYJskVhUj7OjOBYiDafVr/ifw6quK/f58/kKQUuIKbh0XAT1/GWskk/w 7ehIzDGUq4f4pspjijdLV4zXlUwK30DtQevIK9x2lMBMVIuYz1Y5kkx7h/xuYNFqq7l9 F5vpd+QMPvZyMUFuUtNBWUqz8D2v+nwD0gEhgrfefZqElET3V7khf/zKZCrnjcwy3pDR tqJciULrwtkUei4kZn61iLjiOO2dk1rEb1M58oHgd15dMCBrEqsOaD3ujA++O1GR2IE9 FrVsw3WC6zJrDWyxcUV4KX54Xo1lZGfQF5+1yoklp9EGRmiUtIhTvfBTFw5ra0m5yxy0 v5GA== X-Gm-Message-State: ALoCoQmllzXFvQZfZ3McH+aBRD0h+EMPD4lufRL5ECCG0TwpFnxXW03iFE8xap4xI5rTgwypv5Ym X-Received: by 10.236.13.36 with SMTP id a24mr680821yha.50.1379078129744; Fri, 13 Sep 2013 06:15:29 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.99.72 with SMTP id eo8ls1118170qeb.41.gmail; Fri, 13 Sep 2013 06:15:29 -0700 (PDT) X-Received: by 10.52.230.233 with SMTP id tb9mr9883670vdc.17.1379078129512; Fri, 13 Sep 2013 06:15:29 -0700 (PDT) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id tf3si3118052vec.30.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:15:29 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.177 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.177; Received: by mail-vc0-f177.google.com with SMTP id gf12so889915vcb.22 for ; Fri, 13 Sep 2013 06:15:29 -0700 (PDT) X-Received: by 10.52.119.228 with SMTP id kx4mr10037734vdb.12.1379078129435; Fri, 13 Sep 2013 06:15:29 -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 u4csp80056vcz; Fri, 13 Sep 2013 06:15:28 -0700 (PDT) X-Received: by 10.66.142.193 with SMTP id ry1mr15513479pab.150.1379078128591; Fri, 13 Sep 2013 06:15:28 -0700 (PDT) Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47]) by mx.google.com with ESMTPS id sl4si11242090pac.39.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:15:28 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.47 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.47; Received: by mail-pa0-f47.google.com with SMTP id kl13so2503435pab.20 for ; Fri, 13 Sep 2013 06:15:27 -0700 (PDT) X-Received: by 10.67.15.70 with SMTP id fm6mr15191980pad.109.1379078127776; Fri, 13 Sep 2013 06:15:27 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id ry4sm18065216pab.4.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:15:27 -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 , Shawn Guo Subject: [PATCH 105/228] cpufreq: imx6q: don't initialize part of policy that is set by core too Date: Fri, 13 Sep 2013 18:30:51 +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.177 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 29767bb..649547f 100644 --- a/drivers/cpufreq/imx6q-cpufreq.c +++ b/drivers/cpufreq/imx6q-cpufreq.c @@ -162,7 +162,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;