From patchwork Wed Aug 14 13:32:19 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 19143 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-gh0-f197.google.com (mail-gh0-f197.google.com [209.85.160.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E59C22390D for ; Wed, 14 Aug 2013 13:36:33 +0000 (UTC) Received: by mail-gh0-f197.google.com with SMTP id r20sf1128005ghr.8 for ; Wed, 14 Aug 2013 06:36:33 -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=ym5F9Q8pUAvrgoZ7UJlevv6GuFLboBbR8PUbf7Ojfps=; b=ZCHFxZbaXgKsxiaKenQUTRN813rHv6Zo0Q2gTS2YBjNAzS+Eo9pRevbQ49HO9par3U lV5Wmzv9FYI31aYrtnNro//EMhTbFe55XTlETR1z290s2b8crThDksgr0D26KSlArM8h 7HPSLVkcmjE0wR1mRh3Wjm6S/wYI/HmmbqujVWz1461XX9KaZu5DZ3G7P1S/Zl71oTLt 4dO991kVWQ1s9uTD5ImG5+c275fj+0CC4CU3LJVimzDd2I6Kb2Ja4cCCGitLw26I9kEI BGijZzncESitV1G+Plr3uL09I/jmhwe54+8smXMx8I23NNkDoB19jJpaqHAMkIWrhp4N eyug== X-Received: by 10.58.205.143 with SMTP id lg15mr2485666vec.13.1376487393499; Wed, 14 Aug 2013 06:36:33 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.86.71 with SMTP id n7ls3124145qez.16.gmail; Wed, 14 Aug 2013 06:36:33 -0700 (PDT) X-Received: by 10.58.224.102 with SMTP id rb6mr109557vec.43.1376487393403; Wed, 14 Aug 2013 06:36:33 -0700 (PDT) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id vg3si11034588vec.24.2013.08.14.06.36.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:36:33 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.172 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.172; Received: by mail-vc0-f172.google.com with SMTP id m17so5103141vca.31 for ; Wed, 14 Aug 2013 06:36:33 -0700 (PDT) X-Gm-Message-State: ALoCoQn4liB/HaXM3WIkv2E1MQLkDjAwsVgeLJ4LTRZOyFfsJGJc3Q1Ye3d4OyFKleQI/MB+Q8hw X-Received: by 10.58.211.227 with SMTP id nf3mr9790142vec.20.1376487393325; Wed, 14 Aug 2013 06:36:33 -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 u4csp213251vcz; Wed, 14 Aug 2013 06:36:32 -0700 (PDT) X-Received: by 10.66.188.203 with SMTP id gc11mr9790346pac.63.1376487392494; Wed, 14 Aug 2013 06:36:32 -0700 (PDT) Received: from mail-pb0-f53.google.com (mail-pb0-f53.google.com [209.85.160.53]) by mx.google.com with ESMTPS id yl7si29374184pab.290.2013.08.14.06.36.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:36:32 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.53 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.53; Received: by mail-pb0-f53.google.com with SMTP id up15so9413773pbc.12 for ; Wed, 14 Aug 2013 06:36:32 -0700 (PDT) X-Received: by 10.66.122.67 with SMTP id lq3mr1365532pab.147.1376487391926; Wed, 14 Aug 2013 06:36:31 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id oj6sm53388781pab.9.2013.08.14.06.36.28 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:36:31 -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 30/37] cpufreq: s5pv210: don't initialize part of policy that is set by core too Date: Wed, 14 Aug 2013 19:02:19 +0530 Message-Id: <8962fe2b817a3d593b7a09471655b3dd14ab81e1.1376486713.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.220.172 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 bdffc3d..76a4177 100644 --- a/drivers/cpufreq/s5pv210-cpufreq.c +++ b/drivers/cpufreq/s5pv210-cpufreq.c @@ -515,8 +515,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);