diff options
author | Chengming Zhou <zhouchengming@bytedance.com> | 2022-08-18 20:48:05 +0800 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2022-08-23 11:01:20 +0200 |
commit | e4fe074d6c359c19b74564fa1364fe48343cfa5d (patch) | |
tree | 1562bcdc259ba57547b325ef429c8308630b94f2 /kernel/sched/sched.h | |
parent | d6531ab6e50149ab2a144b0f4787cb9277d0893f (diff) | |
download | lwn-e4fe074d6c359c19b74564fa1364fe48343cfa5d.tar.gz lwn-e4fe074d6c359c19b74564fa1364fe48343cfa5d.zip |
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/sched.h')
0 files changed, 0 insertions, 0 deletions