From patchwork Fri Sep 13 13:01:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20177 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f72.google.com (mail-qe0-f72.google.com [209.85.128.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 660FC20358 for ; Fri, 13 Sep 2013 13:17:37 +0000 (UTC) Received: by mail-qe0-f72.google.com with SMTP id 6sf1224625qea.7 for ; Fri, 13 Sep 2013 06:17:37 -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=uu6zIYyquIKj8qAp/WWjSMJ5b1IpnXApriE6jDwq4eQ=; b=PW71afNDIlAYy0P/JqPTpjObV2zw3AWKe2xAXJ45Kq/6r/0HRWuBJf2ksFzInCDNk9 lQSYddnNedHzoCIjzlrgkLGrY3VADLNJFx6fxR9FndpeJkRoBirA7XlibttHhqhF/tju vU0omcj1ZI1VSQ+H1lLPBCpXuhkCfNPga7LVuOEJzRvq2zRm8nCaYKKJh/3dzZaYryQY bM9bBMnp9yWmI2WgCJvzOqCnd0+a+38D/Dcd100qUmfsDo4ULJP4tx522i6cEhDIv2fQ jsSt0RJ0wscmt4RptXerQMxVjAULAdX/bbbytcmttPgq8S8IJ13CYur/4tFLaPp1jCHm 13AA== X-Gm-Message-State: ALoCoQnvLnxAgFq/31GJ+uUHrbYlSNvTFWKMhCI587F6EGH7FmH3IHcf6i3fwubNrhVzZclOaJGp X-Received: by 10.236.167.138 with SMTP id i10mr5427877yhl.9.1379078257154; Fri, 13 Sep 2013 06:17:37 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.70.161 with SMTP id n1ls1179538qeu.27.gmail; Fri, 13 Sep 2013 06:17:36 -0700 (PDT) X-Received: by 10.221.47.193 with SMTP id ut1mr11977805vcb.8.1379078256472; Fri, 13 Sep 2013 06:17:36 -0700 (PDT) Received: from mail-ve0-f172.google.com (mail-ve0-f172.google.com [209.85.128.172]) by mx.google.com with ESMTPS id j3si3101926vcf.114.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:17:36 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.172 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.172; Received: by mail-ve0-f172.google.com with SMTP id oz11so962020veb.3 for ; Fri, 13 Sep 2013 06:17:36 -0700 (PDT) X-Received: by 10.52.122.68 with SMTP id lq4mr10120979vdb.21.1379078256386; Fri, 13 Sep 2013 06:17: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 u4csp80177vcz; Fri, 13 Sep 2013 06:17:35 -0700 (PDT) X-Received: by 10.66.146.199 with SMTP id te7mr15498766pab.106.1379078255382; Fri, 13 Sep 2013 06:17:35 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id qe4si5468827pbc.178.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:17:35 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.50; Received: by mail-pb0-f50.google.com with SMTP id uo5so1214672pbc.23 for ; Fri, 13 Sep 2013 06:17:34 -0700 (PDT) X-Received: by 10.68.169.161 with SMTP id af1mr13504731pbc.22.1379078254867; Fri, 13 Sep 2013 06:17:34 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id y5sm11723549pbs.18.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:17: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 , spear-devel@list.st.com Subject: [PATCH 123/228] cpufreq: spear: don't initialize part of policy that is set by core too Date: Fri, 13 Sep 2013 18:31:09 +0530 Message-Id: <4f06a09472f9a4a37dd34ff5c81a12e56121dd11.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.128.172 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: spear-devel@list.st.com Signed-off-by: Viresh Kumar --- drivers/cpufreq/spear-cpufreq.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/cpufreq/spear-cpufreq.c b/drivers/cpufreq/spear-cpufreq.c index e9657e3..aacdb61 100644 --- a/drivers/cpufreq/spear-cpufreq.c +++ b/drivers/cpufreq/spear-cpufreq.c @@ -180,8 +180,6 @@ static int spear_cpufreq_init(struct cpufreq_policy *policy) } policy->cpuinfo.transition_latency = spear_cpufreq.transition_latency; - policy->cur = spear_cpufreq_get(0); - cpumask_setall(policy->cpus); return 0;