sched/fair: Remove sysctl_sched_migration_cost condition
authorVincent Guittot <vincent.guittot@linaro.org>
Tue, 19 Oct 2021 12:35:36 +0000 (14:35 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Sun, 31 Oct 2021 10:11:38 +0000 (11:11 +0100)
commitc5b0a7eefc70150caf23e37bc9d639c68c87a097
treedbfc572f5aa990e87c9d131fa8c45a54ce60b74c
parente60b56e46b384cee1ad34e6adc164d883049c6c3
sched/fair: Remove sysctl_sched_migration_cost condition

With a default value of 500us, sysctl_sched_migration_cost is
significanlty higher than the cost of load_balance. Remove the
condition and rely on the sd->max_newidle_lb_cost to abort
newidle_balance.

Suggested-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Acked-by: Mel Gorman <mgorman@suse.de>
Link: https://lore.kernel.org/r/20211019123537.17146-5-vincent.guittot@linaro.org
kernel/sched/fair.c