For task changing its policy or group
Change-Id: I594332064c172bce50f0d4b8134e992a52c2576d
Signed-off-by: Johnlay Park <jonglae.park@samsung.com>
static void set_curr_task_rt(struct rq *rq)
{
struct task_struct *p = rq->curr;
+ struct sched_rt_entity *rt_se = &p->rt;
p->se.exec_start = rq_clock_task(rq);
+ for_each_sched_rt_entity(rt_se) {
+ struct rt_rq *rt_rq = rt_rq_of_se(rt_se);
+ rt_rq->curr = rt_se;
+ }
+
/* The running task is never eligible for pushing */
dequeue_pushable_task(rq, p);
}