sched/fair: Simplify util_est
authorVincent Guittot <vincent.guittot@linaro.org>
Fri, 1 Dec 2023 16:16:52 +0000 (17:16 +0100)
committerIngo Molnar <mingo@kernel.org>
Sat, 23 Dec 2023 14:59:58 +0000 (15:59 +0100)
commit11137d384996bb05cf33c8163db271e1bac3f4bf
treeb2f46bddd26239f7c8c3ea0fc792bc5d75f64fe8
parent7736ae5572eb344c090fbef9621a228e7e3d6276
sched/fair: Simplify util_est

With UTIL_EST_FASTUP now being permanent, we can take advantage of the
fact that the ewma jumps directly to a higher utilization at dequeue to
simplify util_est and remove the enqueued field.

Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Tested-by: Lukasz Luba <lukasz.luba@arm.com>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Reviewed-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Reviewed-by: Hongyan Xia <hongyan.xia2@arm.com>
Reviewed-by: Alex Shi <alexs@kernel.org>
Link: https://lore.kernel.org/r/20231201161652.1241695-3-vincent.guittot@linaro.org
include/linux/sched.h
kernel/sched/debug.c
kernel/sched/fair.c
kernel/sched/pelt.h