Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161369Ab2JXV4d (ORCPT ); Wed, 24 Oct 2012 17:56:33 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:40249 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161299Ab2JXV42 (ORCPT ); Wed, 24 Oct 2012 17:56:28 -0400 From: Juri Lelli To: peterz@infradead.org, tglx@linutronix.de Cc: mingo@redhat.com, rostedt@goodmis.org, oleg@redhat.com, fweisbec@gmail.com, darren@dvhart.com, johan.eker@ericsson.com, p.faure@akatech.ch, linux-kernel@vger.kernel.org, claudio@evidence.eu.com, michael@amarulasolutions.com, fchecconi@gmail.com, tommaso.cucinotta@sssup.it, juri.lelli@gmail.com, nicola.manica@disi.unitn.it, luca.abeni@unitn.it, dhaval.giani@gmail.com, hgu1972@gmail.com, paulmck@linux.vnet.ibm.com, raistlin@linux.it, insop.song@ericsson.com, liming.wang@windriver.com, jkacur@redhat.com, harald.gustafsson@ericsson.com, vincent.guittot@linaro.org Subject: [PATCH 07/16] sched: SCHED_DEADLINE avg_update accounting. Date: Wed, 24 Oct 2012 14:53:45 -0700 Message-Id: <1351115634-8420-8-git-send-email-juri.lelli@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1351115634-8420-1-git-send-email-juri.lelli@gmail.com> References: <1351115634-8420-1-git-send-email-juri.lelli@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1023 Lines: 33 From: Dario Faggioli 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 Signed-off-by: Juri Lelli --- kernel/sched/dl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/sched/dl.c b/kernel/sched/dl.c index bc8c310..38e6071 100644 --- a/kernel/sched/dl.c +++ b/kernel/sched/dl.c @@ -556,6 +556,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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/