]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit287cdaac5700c5b8970d739f73d742d863d3e2ca
tree69b28bcd4e43b0467c39a744e87a0692645f62ba
parentd0cdb3ce8834332d918fc9c8ff74f8a169ec9abe
sched/fair: Fix scale_rt_capacity() for SMT

Since commit:

  523e979d3164 ("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: 523e979d3164 ("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