Hi Vikram,
On Thu, Jul 6, 2017 at 11:44 PM, Vikram Mulukutla
<markivx@xxxxxxxxxxxxxx> wrote:
On 2017-07-04 10:34, Patrick Bellasi wrote:
Currently the utilization of the FAIR class is collected before locking
the policy. Although that should not be a big issue for most cases, we
also don't really know how much latency there can be between the
utilization reading and its usage.
Let's get the FAIR utilization right before its usage to be better in
sync with the current status of a CPU.
Signed-off-by: Patrick Bellasi <patrick.bellasi@xxxxxxx>
Given that the utilization update hooks are called with the per-cpu rq lock
held (for all classes), I don't think PELT utilization can change throughout
the lifetime of the cpufreq_update_{util,this_cpu} call? Even with Viresh's
remote cpu callback series we'd still have to hold the rq lock across
cpufreq_update_util.. what can change today is 'max'
(arch_scale_cpu_capacity) when a cpufreq policy is shared, so the patch is
still needed for that reason I think?
I didn't follow, Could you elaborate more why you think the patch
helps with the case where max changes while the per-cpu rq lock held?
thanks,
-Joel