cpufreq: schedutil: fix equation in comment

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@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Vincent Guittot <vincent.guittot@linaro.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "Rafael J . Wysocki" <rjw@rjwysocki.net>
Link: https://lkml.kernel.org/r/20190802104628.8410-1-qais.yousef@arm.com
This commit is contained in:
Qais Yousef 2019-08-02 11:46:28 +01:00 committed by Peter Zijlstra
parent 67692435c4
commit 5c3ceef9ad

View File

@ -259,9 +259,9 @@ unsigned long schedutil_cpu_util(int cpu, unsigned long util_cfs,
* irq metric. Because IRQ/steal time is hidden from the task clock we * irq metric. Because IRQ/steal time is hidden from the task clock we
* need to scale the task numbers: * need to scale the task numbers:
* *
* 1 - irq * max - irq
* U' = irq + ------- * U * U' = irq + --------- * U
* max * max
*/ */
util = scale_irq_capacity(util, irq, max); util = scale_irq_capacity(util, irq, max);
util += irq; util += irq;