未验证 提交 5a1d2ec2 编写于 作者: O openeuler-ci-bot 提交者: Gitee

!1217 sched/rt: Fix possible warn when push_rt_task

Merge Pull Request from: @ci-robot 
 
PR sync from: Hui Tang <tanghui20@huawei.com>
https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/YBGT2EBOTBD7PFWTPX3DX74QNLLTRRVR/ 
 
 
Link:https://gitee.com/openeuler/kernel/pulls/1217 

Reviewed-by: Zucheng Zheng <zhengzucheng@huawei.com> 
Reviewed-by: Jialin Zhang <zhangjialin11@huawei.com> 
Signed-off-by: Jialin Zhang <zhangjialin11@huawei.com> 
......@@ -1941,6 +1941,9 @@ static int push_rt_task(struct rq *rq)
goto retry;
}
if (unlikely(!cpu_online(lowest_rq->cpu)))
goto out;
deactivate_task(rq, next_task, 0);
set_task_cpu(next_task, lowest_rq->cpu);
activate_task(lowest_rq, next_task, 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册