Message ID | b7aefeb7f7e756d9608039d58a11ab907096e6e6.1379063063.git.viresh.kumar@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCRIZROPVQPBB2NAZSIQKGQEEDNNQAQ@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f197.google.com (mail-vc0-f197.google.com [209.85.220.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E686B20358 for <linaro@patches.linaro.org>; Fri, 13 Sep 2013 13:17:29 +0000 (UTC) Received: by mail-vc0-f197.google.com with SMTP id gd11sf1200843vcb.4 for <linaro@patches.linaro.org>; Fri, 13 Sep 2013 06:17:29 -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=omj/O+9z82DCp1B3cnpn+housg/rdJ7GVF3YWntqG1I=; b=WajgFKTVwBDD03HPqyOKVYX0DYdDNMLIZDCrJmvPjWoA/q7GKMalEB4RuyTkwA56Bw tKSQ5NUnzRNd6poU5YrWaFRlTppXIZNXkgAk7ryvLKi3foGdM92tVmYPqjghUufijZjr 2SG1gfIyvCLFJ9xWHVAUJTIUdYNwM0vn3mGWgsEwXSCDBPlYyOZMmssEakoepbIfXf/W fKo2ISSfDfG2c02ZDOHtxRlZevj0R089FWlXGLDN3oNsgkopxbYsroXI34tnVWjCeusE WZFaMv7I9NjgSfVv8KKiyJ6A+JaYhV/h7odxfr9R/RxpI0XbWHdD+zJQTASKDw7GECPT ELCg== X-Gm-Message-State: ALoCoQlTLMLaa50VcKSlMltCguVOCBRo3f9flGJdnZYJRfE+yR1IgSCfNmyNfHQYl/KUbPOvKZ55 X-Received: by 10.236.198.197 with SMTP id v45mr5035485yhn.26.1379078249692; Fri, 13 Sep 2013 06:17:29 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.116.135 with SMTP id jw7ls1107913qeb.58.gmail; Fri, 13 Sep 2013 06:17:29 -0700 (PDT) X-Received: by 10.58.235.69 with SMTP id uk5mr11921921vec.17.1379078249481; Fri, 13 Sep 2013 06:17:29 -0700 (PDT) Received: from mail-vb0-f44.google.com (mail-vb0-f44.google.com [209.85.212.44]) by mx.google.com with ESMTPS id r3si3119364ven.31.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:17:29 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.44 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.44; Received: by mail-vb0-f44.google.com with SMTP id e13so888648vbg.17 for <patchwork-forward@linaro.org>; Fri, 13 Sep 2013 06:17:29 -0700 (PDT) X-Received: by 10.52.119.228 with SMTP id kx4mr10044447vdb.12.1379078249415; Fri, 13 Sep 2013 06:17:29 -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 u4csp80174vcz; Fri, 13 Sep 2013 06:17:28 -0700 (PDT) X-Received: by 10.66.227.2 with SMTP id rw2mr15287999pac.131.1379078248586; Fri, 13 Sep 2013 06:17:28 -0700 (PDT) Received: from mail-pd0-f181.google.com (mail-pd0-f181.google.com [209.85.192.181]) by mx.google.com with ESMTPS id h2si11230043pao.78.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:17:28 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.181 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.181; Received: by mail-pd0-f181.google.com with SMTP id g10so1229869pdj.40 for <patches@linaro.org>; Fri, 13 Sep 2013 06:17:28 -0700 (PDT) X-Received: by 10.66.156.199 with SMTP id wg7mr15120570pab.81.1379078248046; Fri, 13 Sep 2013 06:17:28 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id ia5sm11694655pbc.42.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:17:27 -0700 (PDT) From: Viresh Kumar <viresh.kumar@linaro.org> 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 <viresh.kumar@linaro.org>, Paul Mundt <lethal@linux-sh.org>, linux-sh@vger.kernel.org Subject: [PATCH 122/228] cpufreq: sh: don't initialize part of policy that is set by core too Date: Fri, 13 Sep 2013 18:31:08 +0530 Message-Id: <b7aefeb7f7e756d9608039d58a11ab907096e6e6.1379063063.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: <cover.1379063063.git.viresh.kumar@linaro.org> References: <cover.1379063063.git.viresh.kumar@linaro.org> In-Reply-To: <cover.1379063063.git.viresh.kumar@linaro.org> References: <cover.1379063063.git.viresh.kumar@linaro.org> 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.44 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: <patchwork-forward.linaro.org> X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> |
diff --git a/drivers/cpufreq/sh-cpufreq.c b/drivers/cpufreq/sh-cpufreq.c index c681b86..387af12 100644 --- a/drivers/cpufreq/sh-cpufreq.c +++ b/drivers/cpufreq/sh-cpufreq.c @@ -111,8 +111,6 @@ static int sh_cpufreq_cpu_init(struct cpufreq_policy *policy) return PTR_ERR(cpuclk); } - policy->cur = sh_cpufreq_get(cpu); - freq_table = cpuclk->nr_freqs ? cpuclk->freq_table : NULL; if (freq_table) { int result;
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: Paul Mundt <lethal@linux-sh.org> Cc: linux-sh@vger.kernel.org Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> --- drivers/cpufreq/sh-cpufreq.c | 2 -- 1 file changed, 2 deletions(-)