]> git.baikalelectronics.ru Git - kernel.git/commit
sched/fair: Fix scale_rt_capacity() for SMT
authorVincent Guittot <vincent.guittot@linaro.org>
Tue, 4 Sep 2018 09:36:26 +0000 (11:36 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 10 Sep 2018 08:13:47 +0000 (10:13 +0200)
commitde8ac94d3627ed9f3187b2b8c4f4c4a4d2c7f0b4
tree69b28bcd4e43b0467c39a744e87a0692645f62ba
parent4c6f2d6cec0e898d9b8f5fe348eb97eb3b442ff6
sched/fair: Fix scale_rt_capacity() for SMT

Since commit:

  aa20adcf00ab ("sched/core: Use PELT for scale_rt_capacity()")

scale_rt_capacity() returns the remaining capacity and not a scale factor
to apply on cpu_capacity_orig. arch_scale_cpu() is directly called by
scale_rt_capacity() so we must take the sched_domain argument.

Reported-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Fixes: aa20adcf00ab ("sched/core: Use PELT for scale_rt_capacity()")
Link: http://lkml.kernel.org/r/20180904093626.GA23936@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c