lkml.org 
[lkml]   [2013]   [Feb]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 05/14] sched: SCHED_DEADLINE avg_update accounting.
    Date
    From: Dario Faggioli <raistlin@linux.it>

    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>
    ---
    kernel/sched/deadline.c | 2 ++
    1 file changed, 2 insertions(+)

    diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c
    index 223cc3e..d3334fc 100644
    --- a/kernel/sched/deadline.c
    +++ b/kernel/sched/deadline.c
    @@ -557,6 +557,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


    \
     
     \ /
      Last update: 2013-02-11 21:41    [W:0.022 / U:0.228 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site