[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7690ea9d-0155-ecd1-8fb2-08d0bd61e081@arm.com>
Date: Tue, 22 May 2018 10:18:15 +0100
From: Sudeep Holla <sudeep.holla@....com>
To: ilialin@...eaurora.org, mturquette@...libre.com, sboyd@...nel.org,
robh@...nel.org, mark.rutland@....com, viresh.kumar@...aro.org,
nm@...com, lgirdwood@...il.com, broonie@...nel.org,
andy.gross@...aro.org, david.brown@...aro.org,
catalin.marinas@....com, will.deacon@....com, rjw@...ysocki.net,
linux-clk@...r.kernel.org
Cc: Sudeep Holla <sudeep.holla@....com>, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-pm@...r.kernel.org,
linux-arm-msm@...r.kernel.org, linux-soc@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, rnayak@...eaurora.org,
amit.kucheria@...aro.org, nicolas.dechesne@...aro.org,
celster@...eaurora.org, tfinkel@...eaurora.org
Subject: Re: [PATCH] cpufreq: Add Kryo CPU scaling driver
On 22/05/18 08:59, ilialin@...eaurora.org wrote:
> OK, I think I found out the way. Would this be correct?
No.
> -----------------------------------------------------------------------------------------------
> extern struct cpu_topology cpu_topology[NR_CPUS];
>
> static struct device *qcom_cpufreq_kryo_get_cluster_lead(int cluster)
> {
> unsigned cpu;
>
> for_each_possible_cpu(cpu) {
> if ((cluster == cpu_topology[cpu].cluster_id) &&
cluster_id is going away soon, so avoid relying on that. IIUC there's a
way already something like opp_of_get_shared_cpus.
--
Regards,
Sudeep
Powered by blists - more mailing lists