diff options
Diffstat (limited to 'kernel/sched_rt.c')
-rw-r--r-- | kernel/sched_rt.c | 8 |
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 | ||
221 | static 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 | |||
221 | static struct sched_class rt_sched_class __read_mostly = { | 228 | static 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 | }; |