[PATCH 07/15] sched: SCHED_DEADLINE avg_update accounting.

From: Juri Lelli
Date: Wed May 23 2012 - 17:47:27 EST


From: Dario Faggioli <raistlin@xxxxxxxx>

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@xxxxxxxx>
Signed-off-by: Juri Lelli <juri.lelli@xxxxxxxxx>
---
kernel/sched/dl.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/kernel/sched/dl.c b/kernel/sched/dl.c
index 9bc48a0..0262c16 100644
--- a/kernel/sched/dl.c
+++ b/kernel/sched/dl.c
@@ -554,6 +554,8 @@ static void update_curr_dl(struct rq *rq)
curr->se.exec_start = rq->clock_task;
cpuacct_charge(curr, delta_exec);

+ sched_rt_avg_update(rq, delta_exec);
+
dl_se->runtime -= delta_exec;
if (dl_runtime_exceeded(rq, dl_se)) {
__dequeue_task_dl(rq, curr, 0);
--
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/