From patchwork Fri Sep 13 13:01:05 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20173 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f197.google.com (mail-ye0-f197.google.com [209.85.213.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 92DA420358 for ; Fri, 13 Sep 2013 13:17:08 +0000 (UTC) Received: by mail-ye0-f197.google.com with SMTP id q5sf1157068yen.4 for ; Fri, 13 Sep 2013 06:17:08 -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=/bSdD7zvTaNyn5/UYl/9nrk+5F+z9IWZ20zNBY44I34=; b=mJ54FBG86IWx/rnc92TvniMzTxFR+5VRzQno+lxltE2037ZxuGO2Pxczn6DvCthDry 60JdxqRazYeVqIYH8Y8IgrYl8DpsSjFPEKm1YFwRH6TPH/q0dgQYvI4ZU17xonrwHr/M sC72NljRagLoSGH8M7SOSgUP37fGrtPpp1rLV7qCQq4LC8D3amGDoRDBx68TaGCdTMwB QYKFjlk4HgqRUnvEv88w3Az2jEK7+fKLI1xVKxCfI9oDt9j1/IL7/oGggK/qlol2yfMq b98/04ke7+g1LaXfN6SobN2nItaHpNiTz8v4COyU7bdbqYIFAYTWTFpQkOX3aqY8ulGi OVBQ== X-Gm-Message-State: ALoCoQk1/N0+VSCRPzZEikCXgS8HfKNbhgEBtB1w/bLUjM6xxA9PEwQHv57gwFrLH6WAlSP/zJ14 X-Received: by 10.236.172.34 with SMTP id s22mr4936958yhl.25.1379078228365; Fri, 13 Sep 2013 06:17:08 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.38.130 with SMTP id g2ls1150789qek.99.gmail; Fri, 13 Sep 2013 06:17:08 -0700 (PDT) X-Received: by 10.220.42.140 with SMTP id s12mr209398vce.33.1379078228141; Fri, 13 Sep 2013 06:17:08 -0700 (PDT) Received: from mail-ve0-f179.google.com (mail-ve0-f179.google.com [209.85.128.179]) by mx.google.com with ESMTPS id k10si3099687vca.124.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:17:08 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.179 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.179; Received: by mail-ve0-f179.google.com with SMTP id c14so953106vea.10 for ; Fri, 13 Sep 2013 06:17:08 -0700 (PDT) X-Received: by 10.52.165.131 with SMTP id yy3mr5979469vdb.25.1379078228050; Fri, 13 Sep 2013 06:17:08 -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 u4csp80147vcz; Fri, 13 Sep 2013 06:17:07 -0700 (PDT) X-Received: by 10.67.5.132 with SMTP id cm4mr1637768pad.186.1379078227130; Fri, 13 Sep 2013 06:17:07 -0700 (PDT) Received: from mail-pb0-f43.google.com (mail-pb0-f43.google.com [209.85.160.43]) by mx.google.com with ESMTPS id vs3si11181702pab.201.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:17:07 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.43 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.43; Received: by mail-pb0-f43.google.com with SMTP id md4so1212219pbc.30 for ; Fri, 13 Sep 2013 06:17:06 -0700 (PDT) X-Received: by 10.68.87.98 with SMTP id w2mr6361003pbz.109.1379078226660; Fri, 13 Sep 2013 06:17:06 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id a5sm11736413pbw.4.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:17:06 -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 , Kukjin Kim Subject: [PATCH 119/228] cpufreq: s5pv210: don't initialize part of policy that is set by core too Date: Fri, 13 Sep 2013 18:31:05 +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.128.179 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/s5pv210-cpufreq.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/cpufreq/s5pv210-cpufreq.c b/drivers/cpufreq/s5pv210-cpufreq.c index 0eafc52..30d9bb7 100644 --- a/drivers/cpufreq/s5pv210-cpufreq.c +++ b/drivers/cpufreq/s5pv210-cpufreq.c @@ -543,8 +543,6 @@ static int __init s5pv210_cpu_init(struct cpufreq_policy *policy) s5pv210_dram_conf[1].refresh = (__raw_readl(S5P_VA_DMC1 + 0x30) * 1000); s5pv210_dram_conf[1].freq = clk_get_rate(dmc1_clk); - policy->cur = policy->min = policy->max = s5pv210_getspeed(0); - policy->cpuinfo.transition_latency = 40000; return cpufreq_table_validate_and_show(policy, s5pv210_freq_table);