From: "Rafael J. Wysocki" <rjw@rjwysocki.net>
To: Viresh Kumar <viresh.kumar@linaro.org>
Cc: Eduardo Valentin <edubezval@gmail.com>,
Lists linaro-kernel <linaro-kernel@lists.linaro.org>,
"linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>,
Lukasz Majewski <l.majewski@samsung.com>
Subject: Re: [PATCH] cpufreq-dt: register cooling device after validating cpufreq table
Date: Tue, 25 Nov 2014 21:47:40 +0100 [thread overview]
Message-ID: <1620245.pJZHDc87Jv@vostro.rjw.lan> (raw)
In-Reply-To: <CAKohpomFOJWc4C9rWbCmcW7e1kUO=C=awO9RFvBVA0-H2dHjZQ@mail.gmail.com>
On Tuesday, November 25, 2014 08:56:00 PM Viresh Kumar wrote:
> On 25 November 2014 at 07:14, Eduardo Valentin <edubezval@gmail.com> wrote:
> > You are right! I got confused because even with your patch, the
> > sequencing is not working. Looking to that behavior I, somehow, thought
> > the _init function in cpufreq-dt was about init() calls. But in fact, it
> > is driver initialization callback.
>
> :)
>
> > However, by the time of ->init() the cpufreq_driver is not really ready.
>
> I agree.
>
> > Or at least, the cpufreq layer is not ready. A call to
> >
> > cpufreq_frequency_get_table()
> >
> > for instance, it is not working.
>
> I know the story you pasted here :)
>
> > The cpufreq-dt would need to add the of based cpufreq cooling only when
> > cpufreq layer is ready. Any other better cpufreq driver callback to add
> > the cpu cooling?
>
> There is nothing as of now atleast.
>
> > We could sort this out by polling in thermal layer for the cpufreq table
> > until it gets ready, but I believe that would be a dirty hack.
>
> Yeah. Probably we can add a notifier for cpufreq-driver addition/removal.
> That's the best we can do I believe.
Can we please avoid adding any new notifiers?
We can add a new cpufreq driver callback to be invoked by the core when
everything has been set up for this purpose.
--
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
next prev parent reply other threads:[~2014-11-25 20:26 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-24 10:59 [PATCH] cpufreq-dt: register cooling device after validating cpufreq table Viresh Kumar
2014-11-24 18:10 ` Eduardo Valentin
2014-11-25 10:57 ` Viresh Kumar
2014-11-25 1:44 ` Eduardo Valentin
2014-11-25 15:26 ` Viresh Kumar
2014-11-25 20:47 ` Rafael J. Wysocki [this message]
2014-11-26 3:28 ` Viresh Kumar
2014-11-25 10:56 ` Lukasz Majewski
2014-11-25 21:49 ` Rafael J. Wysocki
2014-11-25 22:05 ` Rafael J. Wysocki
2014-11-26 5:57 ` Viresh Kumar
2014-11-26 6:02 ` Viresh Kumar
2014-11-26 15:10 ` Eduardo Valentin
2014-11-26 22:57 ` Rafael J. Wysocki
2014-11-26 3:30 ` Viresh Kumar
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=1620245.pJZHDc87Jv@vostro.rjw.lan \
--to=rjw@rjwysocki.net \
--cc=edubezval@gmail.com \
--cc=l.majewski@samsung.com \
--cc=linaro-kernel@lists.linaro.org \
--cc=linux-pm@vger.kernel.org \
--cc=viresh.kumar@linaro.org \
/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).