summaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorPaul Turner <pjt@google.com>2011-07-21 09:43:39 -0700
committerIngo Molnar <mingo@elte.hu>2011-08-14 12:03:47 +0200
commitd3d9dc3302368269acf94b7381663b93000fe2fe (patch)
tree4659e1f9efdea0f15ab5ef551c718416fb8e7954 /kernel/sched.c
parent8cb120d3e41a0464a559d639d519cef563717a4e (diff)
downloadop-kernel-dev-d3d9dc3302368269acf94b7381663b93000fe2fe.zip
op-kernel-dev-d3d9dc3302368269acf94b7381663b93000fe2fe.tar.gz
sched: Throttle entities exceeding their allowed bandwidth
With the machinery in place to throttle and unthrottle entities, as well as handle their participation (or lack there of) we can now enable throttling. There are 2 points that we must check whether it's time to set throttled state: put_prev_entity() and enqueue_entity(). - put_prev_entity() is the typical throttle path, we reach it by exceeding our allocated run-time within update_curr()->account_cfs_rq_runtime() and going through a reschedule. - enqueue_entity() covers the case of a wake-up into an already throttled group. In this case we know the group cannot be on_rq and can throttle immediately. Checks are added at time of put_prev_entity() and enqueue_entity() Signed-off-by: Paul Turner <pjt@google.com> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/20110721184758.091415417@google.com Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud