[PATCH] sched/dl: Do update_rq_clock() in yield_task_dl()

From: Kirill Tkhai
Date: Wed Feb 04 2015 - 04:09:47 EST



update_curr_dl() needs actual rq clock.

Signed-off-by: Kirill Tkhai <ktkhai@xxxxxxxxxxxxx>
---
kernel/sched/deadline.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c
index e7b2722..f4dbedd 100644
--- a/kernel/sched/deadline.c
+++ b/kernel/sched/deadline.c
@@ -898,6 +898,7 @@ static void yield_task_dl(struct rq *rq)
rq->curr->dl.dl_yielded = 1;
p->dl.runtime = 0;
}
+ update_rq_clock(rq);
update_curr_dl(rq);
}




--
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/