summaryrefslogtreecommitdiff
path: root/kernel/sched/stop_task.c
diff options
context:
space:
mode:
authorChengming Zhou <zhouchengming@bytedance.com>2022-08-18 15:48:05 +0300
committerPeter Zijlstra <peterz@infradead.org>2022-08-23 12:01:20 +0300
commite4fe074d6c359c19b74564fa1364fe48343cfa5d (patch)
tree1562bcdc259ba57547b325ef429c8308630b94f2 /kernel/sched/stop_task.c
parentd6531ab6e50149ab2a144b0f4787cb9277d0893f (diff)
downloadlinux-e4fe074d6c359c19b74564fa1364fe48343cfa5d.tar.xz
sched/fair: Don't init util/runnable_avg for !fair task
post_init_entity_util_avg() init task util_avg according to the cpu util_avg at the time of fork, which will decay when switched_to_fair() some time later, we'd better to not set them at all in the case of !fair task. Suggested-by: Vincent Guittot <vincent.guittot@linaro.org> Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org> Link: https://lore.kernel.org/r/20220818124805.601-10-zhouchengming@bytedance.com
Diffstat (limited to 'kernel/sched/stop_task.c')
0 files changed, 0 insertions, 0 deletions