Message ID | 3248b5fa8ff398349355def086e5998d18ad0e1b.1376486714.git.viresh.kumar@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCRIZROPVQPBB5UPV2IAKGQETHKQJUQ@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f70.google.com (mail-vb0-f70.google.com [209.85.212.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 04A0C2390D for <linaro@patches.linaro.org>; Wed, 14 Aug 2013 13:36:54 +0000 (UTC) Received: by mail-vb0-f70.google.com with SMTP id h10sf7870856vbh.5 for <linaro@patches.linaro.org>; Wed, 14 Aug 2013 06:36:54 -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=g5Dfn6vZEZApeWIdxE/dnb4iHJ02f2v5BHx38oO6Yjc=; b=kXkBzNOnkY9HXMfCN33IUh1pElfJElsh2509pnEIQKZBdcCw4b0fYHyC4bCQh2uYvq awXfOmjb6P0li96S9kyFXHuvL9hpHSjJ1FyyWTfRFcmpp+W0g01uzvhl6/2Xef7dNG/L qQ/bpZirTppHvflib03Fbo7j5L1lDCOmVNyDLZxlqt/fX8bZycY/ixyCNgPJxBQSTVWg XUaFfI5vc6ZgDNeu/uMmBm+Xdm3y7tdklvzLC+p/xCOAodpU0OOYsvzYveURSgIYXG7b LHZkyANVz2tb49nuPNF3t0EF/7Is6xcSMYAVCSOvu975N2l4ou9f9FyXSVwm+UEyorZ9 TLHw== X-Received: by 10.58.229.65 with SMTP id so1mr2408752vec.33.1376487414755; Wed, 14 Aug 2013 06:36:54 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.73.234 with SMTP id o10ls3134353qev.24.gmail; Wed, 14 Aug 2013 06:36:54 -0700 (PDT) X-Received: by 10.220.91.16 with SMTP id k16mr9803042vcm.21.1376487414657; Wed, 14 Aug 2013 06:36:54 -0700 (PDT) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id xb6si11034016vdb.16.2013.08.14.06.36.54 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:36:54 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.178 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.178; Received: by mail-vc0-f178.google.com with SMTP id ha12so5097099vcb.37 for <patchwork-forward@linaro.org>; Wed, 14 Aug 2013 06:36:54 -0700 (PDT) X-Gm-Message-State: ALoCoQm/c97Men5r/5lOIJ1HaENq8UF+ImkX3FPhgPWEzW/2WjChq+8opegDbhl8/mD6BIxMYKN6 X-Received: by 10.52.103.35 with SMTP id ft3mr8365743vdb.5.1376487414559; Wed, 14 Aug 2013 06:36:54 -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 u4csp213268vcz; Wed, 14 Aug 2013 06:36:54 -0700 (PDT) X-Received: by 10.66.162.195 with SMTP id yc3mr9886057pab.64.1376487413598; Wed, 14 Aug 2013 06:36:53 -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 xx2si20892420pac.256.2013.08.14.06.36.53 for <patches@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:36:53 -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 fb10so10006584pad.23 for <patches@linaro.org>; Wed, 14 Aug 2013 06:36:53 -0700 (PDT) X-Received: by 10.66.218.74 with SMTP id pe10mr1144202pac.177.1376487413195; Wed, 14 Aug 2013 06:36:53 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id in2sm47107563pbc.37.2013.08.14.06.36.49 for <multiple recipients> (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:36:52 -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, Viresh Kumar <viresh.kumar@linaro.org>, Paul Mundt <lethal@linux-sh.org>, linux-sh@vger.kernel.org Subject: [PATCH 33/37] cpufreq: sh: don't initialize part of policy that is set by core too Date: Wed, 14 Aug 2013 19:02:22 +0530 Message-Id: <3248b5fa8ff398349355def086e5998d18ad0e1b.1376486714.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: <cover.1376486713.git.viresh.kumar@linaro.org> References: <cover.1376486713.git.viresh.kumar@linaro.org> In-Reply-To: <cover.1376486713.git.viresh.kumar@linaro.org> References: <cover.1376486713.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.220.178 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 91c6446..018348b 100644 --- a/drivers/cpufreq/sh-cpufreq.c +++ b/drivers/cpufreq/sh-cpufreq.c @@ -114,8 +114,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(-)