Message ID | 11be927bd288b276d364991b9a75fa8998de1cc4.1379063063.git.viresh.kumar@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCRIZROPVQPBB747ZSIQKGQESIOEDIA@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f198.google.com (mail-ye0-f198.google.com [209.85.213.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E44F920358 for <linaro@patches.linaro.org>; Fri, 13 Sep 2013 13:15:43 +0000 (UTC) Received: by mail-ye0-f198.google.com with SMTP id m11sf1154059yen.5 for <linaro@patches.linaro.org>; Fri, 13 Sep 2013 06:15:43 -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=gbVrSdX+IXV2PqIuU3CJ3t2lf7haPQVfpwvv7smCOC4=; b=YBEgXHk0xjgvAN69uLpBHOCcgvTm5tZ22OXTKbTva7X8QDFp/wBcXXjPVuY8dBhh3F nn8JLeMrmgwPXvYaQpMmu/Ll4/kTD+MzcAu0944lO4nUkEV95ovQ45WARkR96vh9BUrJ zz1eJSSurBDvAv06+8gUyOQgV0zMdkerSVYWznqHNzqWjBamqXuaV2DteOaR9J0Of+tx UF7Ig+3TV4hCvFnEbS358Scj7dXSLIqPTarxBG8bw0yDPuW/0jR431+3oLv1WeqjKfPe Rja0kl8ndqiFAKXR2UrVn9zlwxWYC4KI0c/hsB6lebs5tM4lFUP59Eip04U8W61rtel/ bCoA== X-Gm-Message-State: ALoCoQl2v6DAwGA3hcv5RiW9yBw7a5AQ6fylQwkOD8bEDhtdkqBJuLaMBDA2EUBcaBfXH4UmgWkZ X-Received: by 10.236.32.74 with SMTP id n50mr5005505yha.13.1379078143684; Fri, 13 Sep 2013 06:15:43 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.83.7 with SMTP id m7ls1178065qey.0.gmail; Fri, 13 Sep 2013 06:15:43 -0700 (PDT) X-Received: by 10.220.88.13 with SMTP id y13mr12198827vcl.20.1379078143450; Fri, 13 Sep 2013 06:15:43 -0700 (PDT) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx.google.com with ESMTPS id 10si3120081vcs.30.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:15:43 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.54 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.54; Received: by mail-vb0-f54.google.com with SMTP id q14so888492vbe.41 for <patchwork-forward@linaro.org>; Fri, 13 Sep 2013 06:15:43 -0700 (PDT) X-Received: by 10.58.208.130 with SMTP id me2mr11907059vec.13.1379078143381; Fri, 13 Sep 2013 06:15:43 -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 u4csp80068vcz; Fri, 13 Sep 2013 06:15:42 -0700 (PDT) X-Received: by 10.68.213.167 with SMTP id nt7mr13457268pbc.140.1379078142248; Fri, 13 Sep 2013 06:15:42 -0700 (PDT) Received: from mail-pb0-f46.google.com (mail-pb0-f46.google.com [209.85.160.46]) by mx.google.com with ESMTPS id tb4si11203816pab.145.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:15:42 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.46 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.46; Received: by mail-pb0-f46.google.com with SMTP id rq2so1220731pbb.5 for <patches@linaro.org>; Fri, 13 Sep 2013 06:15:41 -0700 (PDT) X-Received: by 10.68.200.9 with SMTP id jo9mr13213728pbc.120.1379078141849; Fri, 13 Sep 2013 06:15:41 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id ct4sm11685916pbb.41.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:15:41 -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>, Andrew Lunn <andrew@lunn.ch> Subject: [PATCH 107/228] cpufreq: kirkwood: don't initialize part of policy that is set by core too Date: Fri, 13 Sep 2013 18:30:53 +0530 Message-Id: <11be927bd288b276d364991b9a75fa8998de1cc4.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.54 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/kirkwood-cpufreq.c b/drivers/cpufreq/kirkwood-cpufreq.c index 1a4e4f4..dc434c4 100644 --- a/drivers/cpufreq/kirkwood-cpufreq.c +++ b/drivers/cpufreq/kirkwood-cpufreq.c @@ -122,7 +122,6 @@ static int kirkwood_cpufreq_cpu_init(struct cpufreq_policy *policy) { /* cpuinfo and default policy values */ policy->cpuinfo.transition_latency = 5000; /* 5uS */ - policy->cur = kirkwood_cpufreq_get_cpu_frequency(0); return cpufreq_table_validate_and_show(policy, kirkwood_freq_table); }
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: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> --- drivers/cpufreq/kirkwood-cpufreq.c | 1 - 1 file changed, 1 deletion(-)