Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1585045

Re: [RFC][PATCH] cpufreq: User/admin documentation update and consolidation

From Viresh Kumar <viresh.kumar@linaro.org>
Newsgroups linux.kernel
Subject Re: [RFC][PATCH] cpufreq: User/admin documentation update and consolidation
Date 2017-02-21 06:10 +0100
Message-ID <tdaS6-6kB-13@gated-at.bofh.it> (permalink)
References <tc2jT-3KD-1@gated-at.bofh.it> <tcSVc-2Zx-13@gated-at.bofh.it> <tcWP7-5GV-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 20-02-17, 14:58, Rafael J. Wysocki wrote:
> Yes, it is called for new and inactive policies.
> 
> For new policies it has to populate policy->cpus (because otherwise the core
> doesn't know what CPUs should be there), which quite arguably doesn't have
> to (or even doesn't need to) be done for inactive policies (because they already
> have policy->real_cpus and policy->related_cpus populated).
 
> I would even argue that ->init() should not update policy->cpus for inactive
> (but not new) policies.

I agree, but I am not aware of any platforms that we have today which
does any similar checks in ->init(). And I wouldn't encourage drivers
to have such special handling at all. Why make it complex?

The way you have written it earlier suggests that the drivers should
check if the policy is active or not (by looking at related_cpus mask)
and set the cpus mask only for new policies. I was just worried that
new driver authors will actually try to write special code in init()
for that and if we really want that to be the case.

-- 
viresh

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [RFC][PATCH] cpufreq: User/admin documentation update and  consolidation Viresh Kumar <viresh.kumar@linaro.org> - 2017-02-20 11:00 +0100
  Re: [RFC][PATCH] cpufreq: User/admin documentation update and consolidation "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2017-02-20 15:10 +0100
    Re: [RFC][PATCH] cpufreq: User/admin documentation update and consolidation "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2017-02-21 01:00 +0100
    Re: [RFC][PATCH] cpufreq: User/admin documentation update and  consolidation Viresh Kumar <viresh.kumar@linaro.org> - 2017-02-21 06:10 +0100
      Re: [RFC][PATCH] cpufreq: User/admin documentation update and consolidation "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2017-02-22 02:00 +0100

csiph-web