From patchwork Fri Sep 13 13:00:57 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20165 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f70.google.com (mail-vb0-f70.google.com [209.85.212.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 60E4F20358 for ; Fri, 13 Sep 2013 13:16:11 +0000 (UTC) Received: by mail-vb0-f70.google.com with SMTP id h10sf1199624vbh.1 for ; Fri, 13 Sep 2013 06:16:11 -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=JUxuD+myYvGRiEZVjqzpq/oElh6FgKYxoRiSOyw4yMs=; b=CI+nkBSVgS83c8XuX55iPVgjo4ygkgVqGW2D0YOANaDeodlAzNlMztEXI7W6XYRZwh U6IcZp5Ou6wLSl6DCJwh+C+dD5CcruqUi0IEtl87n3P1ewOv2FIyFrTkyToJzmntgsWt 0/Wmlq/sRlqD8N0ydjJYDWRuwOau+rvtrK0Y7cPka05p+QOu/Cu6PbukYO3yHYtLylaz qFc4cdy8ePZOc+m0uGRaJ3yP5l8jc6NTEZdWK9LkDrnvPjW1eKu3fMTVBDINDIUX/ZE9 VUIZz6RoQufBzZIiUNwS0yIPhf7Nsa3jbWxkZVbLXxSfaQudzPLQeqmxBVZbtXmUVn6p 1RoA== X-Gm-Message-State: ALoCoQlnd0cZN9YPD2213lLEwWEFfwVsimmeo9ImoDOoJyCXHm3vcnw3d7DmQZL50pUJF6bar7Ir X-Received: by 10.236.110.168 with SMTP id u28mr4985705yhg.40.1379078171177; Fri, 13 Sep 2013 06:16:11 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.49.42 with SMTP id r10ls1179024qen.86.gmail; Fri, 13 Sep 2013 06:16:11 -0700 (PDT) X-Received: by 10.220.16.73 with SMTP id n9mr1655759vca.24.1379078170955; Fri, 13 Sep 2013 06:16:10 -0700 (PDT) Received: from mail-ve0-f180.google.com (mail-ve0-f180.google.com [209.85.128.180]) by mx.google.com with ESMTPS id o3si394662ves.48.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:16:10 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.180 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.180; Received: by mail-ve0-f180.google.com with SMTP id jz11so956758veb.11 for ; Fri, 13 Sep 2013 06:16:10 -0700 (PDT) X-Received: by 10.220.74.69 with SMTP id t5mr12037370vcj.18.1379078170860; Fri, 13 Sep 2013 06:16:10 -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 u4csp80089vcz; Fri, 13 Sep 2013 06:16:10 -0700 (PDT) X-Received: by 10.67.23.199 with SMTP id ic7mr15430216pad.73.1379078169960; Fri, 13 Sep 2013 06:16:09 -0700 (PDT) Received: from mail-pd0-f176.google.com (mail-pd0-f176.google.com [209.85.192.176]) by mx.google.com with ESMTPS id qc9si11170202pac.240.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:16:09 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.176 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.176; Received: by mail-pd0-f176.google.com with SMTP id q10so1235364pdj.21 for ; Fri, 13 Sep 2013 06:16:09 -0700 (PDT) X-Received: by 10.68.164.228 with SMTP id yt4mr13129111pbb.77.1379078169571; Fri, 13 Sep 2013 06:16:09 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id w6sm11696006pbt.32.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:16:09 -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 , Santosh Shilimkar Subject: [PATCH 111/228] cpufreq: omap: don't initialize part of policy that is set by core too Date: Fri, 13 Sep 2013 18:30:57 +0530 Message-Id: <0e74553073a6c4a0897b17c13cdd42c69bf4dd98.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.180 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 48020b5..a8c3f90 100644 --- a/drivers/cpufreq/omap-cpufreq.c +++ b/drivers/cpufreq/omap-cpufreq.c @@ -171,8 +171,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); @@ -188,8 +186,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