From patchwork Fri Sep 13 13:00:59 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20167 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 0401720358 for ; Fri, 13 Sep 2013 13:16:26 +0000 (UTC) Received: by mail-vc0-f198.google.com with SMTP id ht10sf1195100vcb.5 for ; Fri, 13 Sep 2013 06:16:25 -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=AgL/teU1iH8ZswEplePhqdtq8uwRVnnYysd85uEOF8U=; b=iPUqQhi4OGqnLTFvaxkIaaUL33Io5q/tSK9sCyB5awtoC7ipqGId7nJGMNujJlXQKH 8petqWnRsKWvJFpOYfeGMfFPd3W2ZG4T3bBROM4a8XHGm/ipjR3RgQ3TBieQfW/McLAz iB98psyx+wfA2RbsKky1uApKSCBEiGmXYt0YF/4W5smfY247U8SB0QYBSy6gGTqQWC8N ULCeXr3qJ874Ak6KZHztMWgvnzwKCTJ7ZnWF7me/ZRQHrBcpxBGiEpgj744PqR8ubTHO y1wvIrgjyf5OKq1Q4Cj2s86KI5L0e3vFsFyopefI2V7cFVN+NDf4i82e+h4vrZHiCzll q3gA== X-Gm-Message-State: ALoCoQn/j6rzrMyTpe8FyoilKBd6zBsQJW+xa7ftUZEEE/mYDLXzZg47nJyi2Ebi5sfBpwt3+b2g X-Received: by 10.236.7.130 with SMTP id 2mr5120587yhp.4.1379078185770; Fri, 13 Sep 2013 06:16:25 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.58.244 with SMTP id u20ls1134181qeq.74.gmail; Fri, 13 Sep 2013 06:16:25 -0700 (PDT) X-Received: by 10.220.145.132 with SMTP id d4mr11937798vcv.9.1379078185577; Fri, 13 Sep 2013 06:16:25 -0700 (PDT) Received: from mail-vb0-f50.google.com (mail-vb0-f50.google.com [209.85.212.50]) by mx.google.com with ESMTPS id zw10si3114016vdb.31.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:16:25 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.50 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.50; Received: by mail-vb0-f50.google.com with SMTP id x14so878861vbb.37 for ; Fri, 13 Sep 2013 06:16:25 -0700 (PDT) X-Received: by 10.58.161.116 with SMTP id xr20mr11960001veb.2.1379078185495; Fri, 13 Sep 2013 06:16:25 -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 u4csp80100vcz; Fri, 13 Sep 2013 06:16:25 -0700 (PDT) X-Received: by 10.68.178.2 with SMTP id cu2mr8799820pbc.161.1379078184600; Fri, 13 Sep 2013 06:16:24 -0700 (PDT) Received: from mail-pb0-f47.google.com (mail-pb0-f47.google.com [209.85.160.47]) by mx.google.com with ESMTPS id tp5si11166827pac.251.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:16:24 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.47 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.47; Received: by mail-pb0-f47.google.com with SMTP id rr4so1220693pbb.34 for ; Fri, 13 Sep 2013 06:16:24 -0700 (PDT) X-Received: by 10.66.147.9 with SMTP id tg9mr15405453pab.5.1379078184113; Fri, 13 Sep 2013 06:16:24 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id bt1sm11735538pbb.2.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:16:23 -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 113/228] cpufreq: pcc: don't initialize part of policy that is set by core too Date: Fri, 13 Sep 2013 18:30:59 +0530 Message-Id: <980fc9e44953ea5b8d13284ae62a8f2c00130453.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.50 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/pcc-cpufreq.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/cpufreq/pcc-cpufreq.c b/drivers/cpufreq/pcc-cpufreq.c index 78787e9..ef66347 100644 --- a/drivers/cpufreq/pcc-cpufreq.c +++ b/drivers/cpufreq/pcc-cpufreq.c @@ -559,13 +559,6 @@ static int pcc_cpufreq_cpu_init(struct cpufreq_policy *policy) ioread32(&pcch_hdr->nominal) * 1000; policy->min = policy->cpuinfo.min_freq = ioread32(&pcch_hdr->minimum_frequency) * 1000; - policy->cur = pcc_get_freq(cpu); - - if (!policy->cur) { - pr_debug("init: Unable to get current CPU frequency\n"); - result = -EINVAL; - goto out; - } pr_debug("init: policy->max is %d, policy->min is %d\n", policy->max, policy->min);