From mboxrd@z Thu Jan 1 00:00:00 1970 From: Viresh Kumar Subject: Re: [PATCH v11 2/2] cpufreq: qcom-hw: Add support for QCOM cpufreq HW driver Date: Tue, 4 Dec 2018 14:59:19 +0530 Message-ID: <20181204092919.t326z6etfvdrjyge@vireshk-i7> References: <1543722903-10989-1-git-send-email-tdas@codeaurora.org> <1543722903-10989-3-git-send-email-tdas@codeaurora.org> <20181204051231.mm5ixli7ckpfzvd4@vireshk-i7> <99d25f02-e595-d4e8-25c4-3c4c206f79a6@codeaurora.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <99d25f02-e595-d4e8-25c4-3c4c206f79a6@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org To: Taniya Das Cc: "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Stephen Boyd , Rajendra Nayak , devicetree@vger.kernel.org, robh@kernel.org, skannan@codeaurora.org, linux-arm-msm@vger.kernel.org, evgreen@google.com, Stephen Boyd List-Id: linux-arm-msm@vger.kernel.org On 04-12-18, 14:57, Taniya Das wrote: > Hello Viresh, > > On 12/4/2018 10:42 AM, Viresh Kumar wrote: > > Hi Taniya, > > > > Sorry that I haven't been reviewing it much from last few iterations as I was > > letting others get this into a better shape. Thanks for your efforts.. > > > > On 02-12-18, 09:25, Taniya Das wrote: > > > +++ b/drivers/cpufreq/qcom-cpufreq-hw.c > > > > > +struct cpufreq_qcom { > > > + struct cpufreq_frequency_table *table; > > > + void __iomem *perf_state_reg; > > > + cpumask_t related_cpus; > > > +}; > > > + > > > +static struct cpufreq_qcom *qcom_freq_domain_map[NR_CPUS]; > > > > Now that the code is much more simplified, I am not sure if you need this > > per-cpu structure at all. The only place where you are using it is in > > qcom_cpufreq_hw_cpu_init() and probe(). Why not merge qcom_cpu_resources_init() > > completely into qcom_cpufreq_hw_cpu_init() and get rid of this structure > > entirely ? > > > > Yes, we still would require the per-cpu. An explanation on why do you feel so would have been nice :) I am sure I am missing something obvious here. -- viresh