Re: [PATCH] cpufreq: schedutil: fix equation in comment

From: Rafael J. Wysocki
Date: Wed Aug 07 2019 - 05:42:16 EST


On Monday, August 5, 2019 3:06:20 PM CEST Peter Zijlstra wrote:
> On Fri, Aug 02, 2019 at 11:46:28AM +0100, Qais Yousef wrote:
> > scale_irq_capacity() call in schedutil_cpu_util() does
> >
> > util *= (max - irq)
> > util /= max
> >
> > But the comment says
> >
> > util *= (1 - irq)
> > util /= max
> >
> > Fix the comment to match what the scaling function does.
> >
> > Signed-off-by: Qais Yousef <qais.yousef@xxxxxxx>
>
> Thanks!
>

I've applied this, so please let me know if it has gone into -tip too and I'll drop it then.