From: Johnlay Park Date: Wed, 28 Feb 2018 07:03:52 +0000 (+0900) Subject: [COMMON] sched/rt: update sched_rt_entity X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b60425d138a7e1dc3053347755b34515720b49de;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] sched/rt: update sched_rt_entity For task changing its policy or group Change-Id: I594332064c172bce50f0d4b8134e992a52c2576d Signed-off-by: Johnlay Park --- diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c index bd0217c2e983..4ee56235052a 100644 --- a/kernel/sched/rt.c +++ b/kernel/sched/rt.c @@ -2732,9 +2732,15 @@ static void task_tick_rt(struct rq *rq, struct task_struct *p, int queued) 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); }