Message ID | f8c2fa4378428196a3141bf9ce7bafadd7aed267.1379063063.git.viresh.kumar@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCRIZROPVQPBBVU7ZSIQKGQEV5E7JPA@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f200.google.com (mail-ve0-f200.google.com [209.85.128.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5AFC620358 for <linaro@patches.linaro.org>; Fri, 13 Sep 2013 13:15:02 +0000 (UTC) Received: by mail-ve0-f200.google.com with SMTP id oy12sf1224719veb.11 for <linaro@patches.linaro.org>; Fri, 13 Sep 2013 06:15:02 -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=Pgvhqn7LRSM2bwvpTiqZL9gKD35mgtCHoXd/Si4t83Q=; b=j0d1TaNK7goZPb4wR1/SBpNDjD1ID99yyF7m37srGX4NMdUycqWb1Ah1l+XrAbSkmh +ROjZTUK7RKrYgQGHQichK3ND5pu+GHYN5xzmZCWdLJEmoeAk4CwhsiyODV4QUrWyOW9 FLxEkFLpn79etBzYWnO5zQvq+NDJvrHtFZEoeto+J5zw33wa6TYMSkEyI2KPZzTlWDz2 Y8iB5yX4L4fPt9IkH6/ZznrrBOjaFy11y274PnioY7nZE/V7N9w8cmTp6aoXIXzRIktt Ls1BcmRUh6DRIPGwLY7a87i83nd3kXMZwb5i8wbwkk7JaYi18pw0Av6Nxd6xrkUoNjUk TLyw== X-Gm-Message-State: ALoCoQnSH+5u2YVgDID9g8igSMyeicK3jbLDBEsyv1HeS+Ht/w3MaVcIT7O6GasmHplbB7+kXiPN X-Received: by 10.236.125.232 with SMTP id z68mr361555yhh.56.1379078102108; Fri, 13 Sep 2013 06:15:02 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.104.177 with SMTP id gf17ls1108888qeb.4.gmail; Fri, 13 Sep 2013 06:15:01 -0700 (PDT) X-Received: by 10.58.208.130 with SMTP id me2mr11904350vec.13.1379078101895; Fri, 13 Sep 2013 06:15:01 -0700 (PDT) Received: from mail-vb0-f50.google.com (mail-vb0-f50.google.com [209.85.212.50]) by mx.google.com with ESMTPS id se9si3101576vdc.75.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:15:01 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.50 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.50; Received: by mail-vb0-f50.google.com with SMTP id x14so883649vbb.23 for <patchwork-forward@linaro.org>; Fri, 13 Sep 2013 06:15:01 -0700 (PDT) X-Received: by 10.220.10.194 with SMTP id q2mr11827300vcq.2.1379078101823; Fri, 13 Sep 2013 06:15:01 -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 u4csp80034vcz; Fri, 13 Sep 2013 06:15:01 -0700 (PDT) X-Received: by 10.66.121.131 with SMTP id lk3mr15286223pab.61.1379078100860; Fri, 13 Sep 2013 06:15:00 -0700 (PDT) Received: from mail-pa0-f50.google.com (mail-pa0-f50.google.com [209.85.220.50]) by mx.google.com with ESMTPS id hi6si11190221pac.171.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:15:00 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.50 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.50; Received: by mail-pa0-f50.google.com with SMTP id fb10so2500868pad.23 for <patches@linaro.org>; Fri, 13 Sep 2013 06:15:00 -0700 (PDT) X-Received: by 10.66.121.234 with SMTP id ln10mr15097643pab.20.1379078100461; Fri, 13 Sep 2013 06:15:00 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id sy10sm18029047pac.15.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:14:59 -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> Subject: [PATCH 101/228] cpufreq: elanfreq: don't initialize part of policy that is set by core too Date: Fri, 13 Sep 2013 18:30:47 +0530 Message-Id: <f8c2fa4378428196a3141bf9ce7bafadd7aed267.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.50 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/elanfreq.c b/drivers/cpufreq/elanfreq.c index fe7053c..d91a645 100644 --- a/drivers/cpufreq/elanfreq.c +++ b/drivers/cpufreq/elanfreq.c @@ -207,7 +207,6 @@ static int elanfreq_cpu_init(struct cpufreq_policy *policy) /* cpuinfo and default policy values */ policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL; - policy->cur = elanfreq_get_cpu_frequency(0); return cpufreq_table_validate_and_show(policy, elanfreq_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(). Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> --- drivers/cpufreq/elanfreq.c | 1 - 1 file changed, 1 deletion(-)