From patchwork Wed Aug 14 13:32:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 19142 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f199.google.com (mail-ye0-f199.google.com [209.85.213.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BF9D82390D for ; Wed, 14 Aug 2013 13:36:26 +0000 (UTC) Received: by mail-ye0-f199.google.com with SMTP id l12sf6519911yen.10 for ; Wed, 14 Aug 2013 06:36:26 -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=zOHlpZZWNJI7l4B9Ql4HDntJH8TEmhlABdRPDndL/2E=; b=ERnwD1NUBzQ9zoOa3hYWzRw0i9JXzNhh1f+fZ/9HQdpEolzcXKw4YgGh0cbAPlaU5X mZR5p35kAJ44ZEU847j4J2cMXV1PQg1WZgF2XIypzOaDpXnDE3PpWLVduJNz97Lm6Bdz P2uzSKwPvYDqR1OsYu9VP4ftqJnp9QZUftqOQY6OdFc1Ot9mAX3hSGMYr2gKqoUDiCzY adIwYDuJHuTuSm5yhDeaLi+FRv7SfRx8GRPWMsh60II2iXfl9iMwh1W0w0sTS3uHvnug r1Vhp3jya32AatuBixqgfb0l+OxJas9V3k/xdTWASEiNc+buTayE31h0Cb1ppCpE7ZZU 1zpg== X-Received: by 10.58.144.232 with SMTP id sp8mr2451522veb.7.1376487386437; Wed, 14 Aug 2013 06:36:26 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.104.177 with SMTP id gf17ls3047109qeb.4.gmail; Wed, 14 Aug 2013 06:36:26 -0700 (PDT) X-Received: by 10.58.106.82 with SMTP id gs18mr8326928veb.18.1376487386342; Wed, 14 Aug 2013 06:36:26 -0700 (PDT) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id ae9si11027649vdc.80.2013.08.14.06.36.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:36:26 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.176 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.176; Received: by mail-vc0-f176.google.com with SMTP id ha11so4074044vcb.7 for ; Wed, 14 Aug 2013 06:36:26 -0700 (PDT) X-Gm-Message-State: ALoCoQmEfMe8P2K98jE27ZLZ9QxrthQo+WUoN/07ZZtT8uF/Rn5vcZ1bPZYW7ZQtt3pRAN4CXD37 X-Received: by 10.58.196.132 with SMTP id im4mr543692vec.28.1376487386251; Wed, 14 Aug 2013 06:36:26 -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 u4csp213248vcz; Wed, 14 Aug 2013 06:36:25 -0700 (PDT) X-Received: by 10.68.211.233 with SMTP id nf9mr10077736pbc.26.1376487385328; Wed, 14 Aug 2013 06:36:25 -0700 (PDT) Received: from mail-pb0-f49.google.com (mail-pb0-f49.google.com [209.85.160.49]) by mx.google.com with ESMTPS id qf5si29400348pac.153.2013.08.14.06.36.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:36:25 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.49 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.49; Received: by mail-pb0-f49.google.com with SMTP id xb4so9369215pbc.22 for ; Wed, 14 Aug 2013 06:36:24 -0700 (PDT) X-Received: by 10.68.111.129 with SMTP id ii1mr10010726pbb.95.1376487384910; Wed, 14 Aug 2013 06:36:24 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id vz4sm16947613pab.11.2013.08.14.06.36.21 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:36:24 -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 , Kukjin Kim Subject: [PATCH 29/37] cpufreq: s3c: don't initialize part of policy that is set by core too Date: Wed, 14 Aug 2013 19:02:18 +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.220.176 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: Kukjin Kim Signed-off-by: Viresh Kumar --- drivers/cpufreq/s3c2416-cpufreq.c | 2 -- drivers/cpufreq/s3c24xx-cpufreq.c | 5 ----- drivers/cpufreq/s3c64xx-cpufreq.c | 2 -- 3 files changed, 9 deletions(-) diff --git a/drivers/cpufreq/s3c2416-cpufreq.c b/drivers/cpufreq/s3c2416-cpufreq.c index 90efbf5..9b22cc4 100644 --- a/drivers/cpufreq/s3c2416-cpufreq.c +++ b/drivers/cpufreq/s3c2416-cpufreq.c @@ -467,8 +467,6 @@ static int __init s3c2416_cpufreq_driver_init(struct cpufreq_policy *policy) freq++; } - policy->cur = clk_get_rate(s3c_freq->armclk) / 1000; - /* Datasheet says PLL stabalisation time must be at least 300us, * so but add some fudge. (reference in LOCKCON0 register description) */ diff --git a/drivers/cpufreq/s3c24xx-cpufreq.c b/drivers/cpufreq/s3c24xx-cpufreq.c index 027dec1..e0fbaef 100644 --- a/drivers/cpufreq/s3c24xx-cpufreq.c +++ b/drivers/cpufreq/s3c24xx-cpufreq.c @@ -378,11 +378,6 @@ static int s3c_cpufreq_init(struct cpufreq_policy *policy) if (policy->cpu != 0) return -EINVAL; - policy->cur = s3c_cpufreq_get(0); - policy->min = policy->cpuinfo.min_freq = 0; - policy->max = policy->cpuinfo.max_freq = cpu_cur.info->max.fclk / 1000; - policy->governor = CPUFREQ_DEFAULT_GOVERNOR; - /* feed the latency information from the cpu driver */ policy->cpuinfo.transition_latency = cpu_cur.info->latency; diff --git a/drivers/cpufreq/s3c64xx-cpufreq.c b/drivers/cpufreq/s3c64xx-cpufreq.c index 72f733b..5357dc4 100644 --- a/drivers/cpufreq/s3c64xx-cpufreq.c +++ b/drivers/cpufreq/s3c64xx-cpufreq.c @@ -225,8 +225,6 @@ static int s3c64xx_cpufreq_driver_init(struct cpufreq_policy *policy) freq++; } - policy->cur = clk_get_rate(armclk) / 1000; - /* Datasheet says PLL stabalisation time (if we were to use * the PLLs, which we don't currently) is ~300us worst case, * but add some fudge.