aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched_rt.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched_rt.c')
-rw-r--r--kernel/sched_rt.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c
index 3c77c03bdf1e..e1d5f1c8b532 100644
--- a/kernel/sched_rt.c
+++ b/kernel/sched_rt.c
@@ -218,6 +218,13 @@ static void task_tick_rt(struct rq *rq, struct task_struct *p)
218 } 218 }
219} 219}
220 220
221static void set_curr_task_rt(struct rq *rq)
222{
223 struct task_struct *p = rq->curr;
224
225 p->se.exec_start = rq->clock;
226}
227
221static struct sched_class rt_sched_class __read_mostly = { 228static struct sched_class rt_sched_class __read_mostly = {
222 .enqueue_task = enqueue_task_rt, 229 .enqueue_task = enqueue_task_rt,
223 .dequeue_task = dequeue_task_rt, 230 .dequeue_task = dequeue_task_rt,
@@ -230,5 +237,6 @@ static struct sched_class rt_sched_class __read_mostly = {
230 237
231 .load_balance = load_balance_rt, 238 .load_balance = load_balance_rt,
232 239
240 .set_curr_task = set_curr_task_rt,
233 .task_tick = task_tick_rt, 241 .task_tick = task_tick_rt,
234}; 242};