]> Git Repo - linux.git/commit
sched/fair: Factorize PELT update
authorVincent Guittot <[email protected]>
Tue, 8 Nov 2016 09:53:44 +0000 (10:53 +0100)
committerIngo Molnar <[email protected]>
Wed, 16 Nov 2016 09:29:09 +0000 (10:29 +0100)
commitd31b1a66cbe0931733583ad9d9e8c6cfd710907d
tree44b05ab2336d8b074632d3f61dca8c2b1c720e6f
parent9c2791f936ef5fd04a118b5c284f2c9a95f4a647
sched/fair: Factorize PELT update

Every time we modify load/utilization of sched_entity, we start to
sync it with its cfs_rq. This update is done in different ways:

 - when attaching/detaching a sched_entity, we update cfs_rq and then
   we sync the entity with the cfs_rq.

 - when enqueueing/dequeuing the sched_entity, we update both
   sched_entity and cfs_rq metrics to now.

Use update_load_avg() everytime we have to update and sync cfs_rq and
sched_entity before changing the state of a sched_enity.

Signed-off-by: Vincent Guittot <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Acked-by: Dietmar Eggemann <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: [email protected]
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
kernel/sched/fair.c
This page took 0.052131 seconds and 4 git commands to generate.