From: Viresh Kumar <viresh.kumar@linaro.org>
To: Hector Yuan <hector.yuan@mediatek.com>
Cc: Sudeep Holla <sudeep.holla@arm.com>,
"linux-mediatek@lists.infradead.org"
<linux-mediatek@lists.infradead.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>,
"Rafael J. Wysocki" <rjw@rjwysocki.net>,
Matthias Brugger <matthias.bgg@gmail.com>,
Rob Herring <robh+dt@kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
wsd_upstream <wsd_upstream@mediatek.com>
Subject: Re: [PATCH v12 1/2] cpufreq: mediatek-hw: Add support for CPUFREQ HW
Date: Mon, 5 Jul 2021 10:02:48 +0530 [thread overview]
Message-ID: <20210705043248.sivxgodszzhrax2d@vireshk-i7> (raw)
In-Reply-To: <1625418089.1958.48.camel@mtkswgap22>
On 05-07-21, 01:01, Hector Yuan wrote:
> Hi, Viresh:
>
> OK, Thank you.
>
> I'll add this routine in of.c.
> May I know the below prototype is okay to you?
>
> static int _of_get_related_cpus(const char *list_name, const char
> *cell_name, int index, struct cpumask *m)
of_perf_domain_get_sharing_cpumask(int cpu, const char *list_name,
const char *cell_name, struct cpumask *cpumask);
And actually add this in cpufreq.h, this doesn't have anything to do with OPP
and I can assume that a platform not enabling the OPP functionality to end up
using it later.
Rafael, will that be fine ? Or we add it in a completely new header ? The users
are going to be cpufreq drivers only I believe.
> And maybe I have to find somewhere to update my
> mtk_freq_domain_map[cpu]?
>
> static int mtk_get_related_cpus(int index, struct cpufreq_mtk *c)
> {
> for_each_possible_cpu(cpu) {
> cpumask_set_cpu(cpu, &c->related_cpus);//related_cpu can copy policy
> cpus
> mtk_freq_domain_map[cpu] = c;//need to find somewhere to assign
>
> }
> }
I am not sure I understood this part well.
--
viresh
next prev parent reply other threads:[~2021-07-05 4:32 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-29 16:52 [PATCH v12] cpufreq: mediatek-hw: Add support for Mediatek cpufreq HW driver Hector Yuan
2021-05-29 16:52 ` [PATCH v12 1/2] cpufreq: mediatek-hw: Add support for CPUFREQ HW Hector Yuan
2021-06-14 10:40 ` Viresh Kumar
[not found] ` <1624781848.1958.16.camel@mtkswgap22>
2021-06-28 7:26 ` Viresh Kumar
2021-06-28 9:09 ` Sudeep Holla
2021-06-29 2:47 ` Viresh Kumar
2021-06-29 9:02 ` Sudeep Holla
2021-06-29 9:05 ` Viresh Kumar
[not found] ` <1625418089.1958.48.camel@mtkswgap22>
2021-07-05 4:32 ` Viresh Kumar [this message]
2021-05-29 16:52 ` [PATCH v12 2/2] dt-bindings: cpufreq: add bindings for MediaTek cpufreq HW Hector Yuan
2021-06-02 16:58 ` Rob Herring
2021-06-27 7:56 ` Hector Yuan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210705043248.sivxgodszzhrax2d@vireshk-i7 \
--to=viresh.kumar@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=hector.yuan@mediatek.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-pm@vger.kernel.org \
--cc=matthias.bgg@gmail.com \
--cc=rjw@rjwysocki.net \
--cc=robh+dt@kernel.org \
--cc=sudeep.holla@arm.com \
--cc=wsd_upstream@mediatek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).