Re: [PATCH V2 2/2] thermal: cpufreq_cooling: Reuse sched_cpu_util()
From: Peter Zijlstra
Date: Fri Oct 23 2020 - 06:37:28 EST
On Fri, Oct 23, 2020 at 03:50:21PM +0530, Viresh Kumar wrote:
> Several parts of the kernel are already using the effective CPU
> utilization (as seen by the scheduler) to get the current load on the
> CPU, do the same here instead of depending on the idle time of the CPU,
> which isn't that accurate comparatively.
>
> Note that, this (and CPU frequency scaling in general) doesn't work that
> well with idle injection as that is done from rt threads and is counted
> as load while it tries to do quite the opposite. That should be solved
> separately though.
Actual numbers that show the goodness would be nice ;-) Because clearly
we're doing this make it better.