[PATCH 04/13] [PATCH 05/13] sched: SCHED_DEADLINE avg_update accounting
From: Peter Zijlstra
Date: Tue Dec 17 2013 - 07:49:36 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.
Cc: bruce.ashfield@xxxxxxxxxxxxx
Cc: claudio@xxxxxxxxxxxxxxx
Cc: darren@xxxxxxxxxx
Cc: dhaval.giani@xxxxxxxxx
Cc: fchecconi@xxxxxxxxx
Cc: fweisbec@xxxxxxxxx
Cc: harald.gustafsson@xxxxxxxxxxxx
Cc: hgu1972@xxxxxxxxx
Cc: insop.song@xxxxxxxxx
Cc: jkacur@xxxxxxxxxx
Cc: johan.eker@xxxxxxxxxxxx
Cc: liming.wang@xxxxxxxxxxxxx
Cc: luca.abeni@xxxxxxxx
Cc: michael@xxxxxxxxxxxxxxxxxxxx
Cc: mingo@xxxxxxxxxx
Cc: nicola.manica@xxxxxxxxxxxxx
Cc: oleg@xxxxxxxxxx
Cc: paulmck@xxxxxxxxxxxxxxxxxx
Cc: p.faure@xxxxxxxxxx
Cc: rostedt@xxxxxxxxxxx
Cc: tglx@xxxxxxxxxxxxx
Cc: tommaso.cucinotta@xxxxxxxx
Cc: vincent.guittot@xxxxxxxxxx
Signed-off-by: Dario Faggioli <raistlin@xxxxxxxx>
Signed-off-by: Juri Lelli <juri.lelli@xxxxxxxxx>
Signed-off-by: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
---
kernel/sched/deadline.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c
index ab5deb9..e69b4e0 100644
--- a/kernel/sched/deadline.c
+++ b/kernel/sched/deadline.c
@@ -564,6 +564,8 @@ static void update_curr_dl(struct rq *rq)
curr->se.exec_start = rq_clock_task(rq);
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.10.4
--
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/