summaryrefslogtreecommitdiffstats
path: root/kernel/events/core.c
diff options
context:
space:
mode:
authorVincent Guittot2016-11-08 10:53:44 +0100
committerIngo Molnar2016-11-16 10:29:09 +0100
commitd31b1a66cbe0931733583ad9d9e8c6cfd710907d (patch)
tree44b05ab2336d8b074632d3f61dca8c2b1c720e6f /kernel/events/core.c
parentsched/fair: Fix hierarchical order in rq->leaf_cfs_rq_list (diff)
downloadkernel-qcow2-linux-d31b1a66cbe0931733583ad9d9e8c6cfd710907d.tar.gz
kernel-qcow2-linux-d31b1a66cbe0931733583ad9d9e8c6cfd710907d.tar.xz
kernel-qcow2-linux-d31b1a66cbe0931733583ad9d9e8c6cfd710907d.zip
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 <vincent.guittot@linaro.org> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Dietmar Eggemann <dietmar.eggemann@arm.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Morten.Rasmussen@arm.com Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: bsegall@google.com Cc: kernellwp@gmail.com Cc: pjt@google.com Cc: yuyang.du@intel.com Link: http://lkml.kernel.org/r/1478598827-32372-4-git-send-email-vincent.guittot@linaro.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/events/core.c')
0 files changed, 0 insertions, 0 deletions