From patchwork Fri Sep 13 13:00:42 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20150 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f198.google.com (mail-vc0-f198.google.com [209.85.220.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A92D320358 for ; Fri, 13 Sep 2013 13:14:23 +0000 (UTC) Received: by mail-vc0-f198.google.com with SMTP id ht10sf1200051vcb.1 for ; Fri, 13 Sep 2013 06:14:23 -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=83sIHpOwmt8lVjp43YOH/2bQ8SqZjMYLNYoKkZ/Cjp8=; b=ajObS3/mcC2dDujzny5VpLI3k2znAIGACkUMW6thS2hWPbO41qrJOz74dCwh3o96n+ XNoKfqRpSAFz1bXQ2PjJNmYulFQsQZzs6FVZ4sNRC3Mj7HsqcwvhxSgVFVIKKgthzXUG J8Xc8dKZzzaHbemDy/NA35lQaAOkNhl0yCA5sJwWFu4IFXm93QXnZvkduj9LWzq0tS2a +U/+lyerFDHbmscPWOL+FBtXjSyUIOCqg25Fo/PfUmreqs/q884GXnxDVFWCZ6sr0MHx O6fsJn+s4i9JM/7tEOUrVahiMVUJxo2+1FliV49XcxxFGbSXr9yguL1B+OpYpB+WCUy1 /dKw== X-Gm-Message-State: ALoCoQnHp6UxOYcOmVS+7qhhemiGKwGF4IXL6a2W2Zoebgl3KSGCTJsNYiaX8HT+F+SRfwOX9GCD X-Received: by 10.236.53.70 with SMTP id f46mr5019053yhc.17.1379078063390; Fri, 13 Sep 2013 06:14:23 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.116.135 with SMTP id jw7ls1107063qeb.58.gmail; Fri, 13 Sep 2013 06:14:23 -0700 (PDT) X-Received: by 10.58.75.131 with SMTP id c3mr8512625vew.12.1379078063193; Fri, 13 Sep 2013 06:14:23 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id dh7si3116185vcb.38.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:14:23 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.173 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.173; Received: by mail-vc0-f173.google.com with SMTP id if17so450934vcb.32 for ; Fri, 13 Sep 2013 06:14:23 -0700 (PDT) X-Received: by 10.220.11.7 with SMTP id r7mr12022123vcr.12.1379078063126; Fri, 13 Sep 2013 06:14:23 -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 u4csp79999vcz; Fri, 13 Sep 2013 06:14:22 -0700 (PDT) X-Received: by 10.66.27.143 with SMTP id t15mr2037548pag.171.1379078062296; Fri, 13 Sep 2013 06:14:22 -0700 (PDT) Received: from mail-pa0-f42.google.com (mail-pa0-f42.google.com [209.85.220.42]) by mx.google.com with ESMTPS id g6si11172142pav.208.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:14:22 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.42 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.42; Received: by mail-pa0-f42.google.com with SMTP id lj1so2522399pab.15 for ; Fri, 13 Sep 2013 06:14:21 -0700 (PDT) X-Received: by 10.66.218.98 with SMTP id pf2mr15400362pac.120.1379078061876; Fri, 13 Sep 2013 06:14:21 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id os4sm11692953pbb.25.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:14:21 -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 Subject: [PATCH 096/228] cpufreq: nforce2: don't initialize part of policy that is set by core too Date: Fri, 13 Sep 2013 18:30:42 +0530 Message-Id: <3c20fa29fabb09e527bf8f5477d78eb4710a7fa6.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.220.173 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(). Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq-nforce2.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/cpufreq-nforce2.c b/drivers/cpufreq/cpufreq-nforce2.c index 56c964c..a05b876 100644 --- a/drivers/cpufreq/cpufreq-nforce2.c +++ b/drivers/cpufreq/cpufreq-nforce2.c @@ -360,7 +360,6 @@ static int nforce2_cpu_init(struct cpufreq_policy *policy) policy->min = policy->cpuinfo.min_freq = min_fsb * fid * 100; policy->max = policy->cpuinfo.max_freq = max_fsb * fid * 100; policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL; - policy->cur = nforce2_get(policy->cpu); return 0; }