]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: schedutil: fix equation in comment
authorQais Yousef <qais.yousef@arm.com>
Fri, 2 Aug 2019 10:46:28 +0000 (11:46 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 8 Aug 2019 07:09:31 +0000 (09:09 +0200)
commit7177a6bfa1c0cdb1a5afd13d07b146bf74a37777
tree7e6550de9798a92f0be91e200d6746c379caea8d
parentfda11f6ee565981fb877005b768885e078a8c1eb
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
kernel/sched/cpufreq_schedutil.c