Thread (31 messages) 31 messages, 5 authors, 2021-08-23

Re: [PATCH v4 0/9] Inefficient OPPs

From: Viresh Kumar <viresh.kumar@linaro.org>
Date: 2021-08-17 07:06:27

On 16-08-21, 16:19, Rafael J. Wysocki wrote:
On Tue, Aug 10, 2021 at 8:13 AM Viresh Kumar [off-list ref] wrote:
quoted
 I understand  that this was done to not do the efficient stuff in case of
  userspace/powersave/performance governors.

  What about reusing following for finding all such cases ?

        policy->governor->flags & CPUFREQ_GOV_DYNAMIC_SWITCHING

  The driver can set a flag to tell if it wants efficient frequencies
  or not, and at runtime we apply efficient algorithm only if the
  current governor does DVFS, which will leave out
  userspace/performance/powersave.
As long as this can be done without actually accessing
policy->governor->flags on every transition, it sounds like a good
idea.
Great.

Vincent, I hope you will be taking this forward then ?

-- 
viresh
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help