From patchwork Wed Aug 14 13:32:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 19135 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f198.google.com (mail-qc0-f198.google.com [209.85.216.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0596B2390D for ; Wed, 14 Aug 2013 13:35:37 +0000 (UTC) Received: by mail-qc0-f198.google.com with SMTP id a11sf7703424qcx.1 for ; Wed, 14 Aug 2013 06:35:36 -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=8QO7a8UG6ns7AlJNcjxcmvzBkRNpgpSjZAgTEqgHcaY=; b=NqU3aq9BWvaz+quPlOO+KVx/dxcBmgwoPTJDb8n4bVOkdoyVuOsRsUJYF3EuOFRwPZ FB/Em9bZaQ4gr4dN4sExR8Vd/lvVQAJSle88bWPt2VwBzH+7ZRCp7YWGkBDq3KubhMPN auKKieCg8gG2MbHSgtj/X4d1d1az9yQRY8XH1mwYO1HgJ2jhqy0VRcxlknPAmnEl31CD AFR+wJ7+Zjju9K88dpUzcwdJPN5eH96S5wHmwiJiEQDvi+Yil+4Sr6Q6TmbMihfQ+23I eFFXov57HvByXex8Pj8Ce64zB0h3IfRgTBk6bpDU+YqzS+skwo9MIbGf2EUyy5zYcj2i aLTQ== X-Received: by 10.52.100.164 with SMTP id ez4mr1821246vdb.7.1376487336725; Wed, 14 Aug 2013 06:35:36 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.82.101 with SMTP id h5ls3229224qey.91.gmail; Wed, 14 Aug 2013 06:35:36 -0700 (PDT) X-Received: by 10.52.177.35 with SMTP id cn3mr93503vdc.46.1376487336616; Wed, 14 Aug 2013 06:35:36 -0700 (PDT) Received: from mail-vb0-f48.google.com (mail-vb0-f48.google.com [209.85.212.48]) by mx.google.com with ESMTPS id b6si8736779veo.98.2013.08.14.06.35.36 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:35:36 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.48 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.48; Received: by mail-vb0-f48.google.com with SMTP id w16so7501525vbf.21 for ; Wed, 14 Aug 2013 06:35:36 -0700 (PDT) X-Gm-Message-State: ALoCoQngaJ7bp9XMq8vDrPYxcGwruHgB+4Fdh4gVBZcynlss3pbwKqA8k2sEbBIAZ3L9fYC8kjeS X-Received: by 10.58.76.130 with SMTP id k2mr8372739vew.24.1376487336499; Wed, 14 Aug 2013 06:35: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 u4csp213195vcz; Wed, 14 Aug 2013 06:35:36 -0700 (PDT) X-Received: by 10.66.122.194 with SMTP id lu2mr9780625pab.125.1376487335661; Wed, 14 Aug 2013 06:35:35 -0700 (PDT) Received: from mail-pb0-f44.google.com (mail-pb0-f44.google.com [209.85.160.44]) by mx.google.com with ESMTPS id if6si28252408pbc.223.2013.08.14.06.35.35 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:35:35 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.44 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.44; Received: by mail-pb0-f44.google.com with SMTP id xa7so9325432pbc.31 for ; Wed, 14 Aug 2013 06:35:35 -0700 (PDT) X-Received: by 10.68.227.4 with SMTP id rw4mr1157373pbc.182.1376487335213; Wed, 14 Aug 2013 06:35:35 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id ys4sm50385652pbb.9.2013.08.14.06.35.31 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:35: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, Viresh Kumar , Santosh Shilimkar Subject: [PATCH 22/37] cpufreq: omap: don't initialize part of policy that is set by core too Date: Wed, 14 Aug 2013 19:02:11 +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.212.48 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: Santosh Shilimkar Signed-off-by: Viresh Kumar --- drivers/cpufreq/omap-cpufreq.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/cpufreq/omap-cpufreq.c b/drivers/cpufreq/omap-cpufreq.c index 69bf7d8..92d45e6 100644 --- a/drivers/cpufreq/omap-cpufreq.c +++ b/drivers/cpufreq/omap-cpufreq.c @@ -146,8 +146,6 @@ static int omap_cpu_init(struct cpufreq_policy *policy) goto fail_ck; } - policy->cur = omap_getspeed(policy->cpu); - if (!freq_table) result = opp_init_cpufreq_table(mpu_dev, &freq_table); @@ -163,8 +161,6 @@ static int omap_cpu_init(struct cpufreq_policy *policy) if (result) goto fail_table; - policy->cur = omap_getspeed(policy->cpu); - /* * On OMAP SMP configuartion, both processors share the voltage * and clock. So both CPUs needs to be scaled together and hence