diff options
author | Dario Faggioli <raistlin@linux.it> | 2013-11-07 08:43:39 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-01-13 07:41:08 -0500 |
commit | 239be4a982154ea0c979fca5846349bb68973aed (patch) | |
tree | d9fda38b55b5bc78270bed4e0e1399427c1b83d9 /kernel/sched | |
parent | 1baca4ce16b8cc7d4f50be1f7914799af30a2861 (diff) |
sched/deadline: Add SCHED_DEADLINE avg_update accounting
Make the core scheduler and load balancer aware of the load
produced by -deadline tasks, by updating the moving average
like for sched_rt.
Signed-off-by: Dario Faggioli <raistlin@linux.it>
Signed-off-by: Juri Lelli <juri.lelli@gmail.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1383831828-15501-6-git-send-email-juri.lelli@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched')
-rw-r--r-- | kernel/sched/deadline.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c index fcc02c9ca16b..21f58d261134 100644 --- a/kernel/sched/deadline.c +++ b/kernel/sched/deadline.c | |||
@@ -564,6 +564,8 @@ static void update_curr_dl(struct rq *rq) | |||
564 | curr->se.exec_start = rq_clock_task(rq); | 564 | curr->se.exec_start = rq_clock_task(rq); |
565 | cpuacct_charge(curr, delta_exec); | 565 | cpuacct_charge(curr, delta_exec); |
566 | 566 | ||
567 | sched_rt_avg_update(rq, delta_exec); | ||
568 | |||
567 | dl_se->runtime -= delta_exec; | 569 | dl_se->runtime -= delta_exec; |
568 | if (dl_runtime_exceeded(rq, dl_se)) { | 570 | if (dl_runtime_exceeded(rq, dl_se)) { |
569 | __dequeue_task_dl(rq, curr, 0); | 571 | __dequeue_task_dl(rq, curr, 0); |