Re: [PATCH V3 4/5] cpufreq: Register notifiers with the PM QoS framework

From: Rafael J. Wysocki
Date: Wed Jun 19 2019 - 05:20:54 EST


On Wed, Jun 19, 2019 at 8:39 AM Viresh Kumar <viresh.kumar@xxxxxxxxxx> wrote:
>
> On 19-06-19, 00:23, Rafael J. Wysocki wrote:
> > In patch [3/5] you could point notifiers for both min and max freq to the same
> > notifier head. Both of your notifiers end up calling cpufreq_update_policy()
> > anyway.
>
> I tried it and the changes in qos.c file look fine. But I don't like at all how
> cpufreq.c looks now. We only register for min-freq notifier now and that takes
> care of max as well. What could have been better is if we could have registered
> a freq-notifier instead of min/max, which isn't possible as well because of how
> qos framework works.
>
> Honestly, the cpufreq changes look hacky to me :(
>
> What do you say.

OK, leave it as is. That's not a big deal.

It is slightly awkward, but oh well.