提交 1b91af3b 编写于 作者: R Rui Xiang 提交者: Xie XiuQi

sched, rt: fix isolated CPUs leaving task_group indefinitely throttled

euler inclusion
category:  bugfix
Bugzilla:  7466
CVE:	   N/A

----------------------------------------

e221d028 (sched,rt: fix isolated CPUs leaving root_task_group
indefinitely throttled) only fixes isolated CPUs leaving root_task_group,
and not fix all other ordinary task_groutask_group. In some scenarios
where we need attach task bind to isolated CPUs to task_group, the
same problem will occurs.

This commit fixes it.
Reported-and-tested-by: NLikun <hw.likun@huawei.com>
Signed-off-by: NRui Xiang <rui.xiang@huawei.com>
Signed-off-by: NBixuan Cui <cuibixuan@huawei.com>
Reviewed-by: NXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 cadf22ad
...@@ -824,8 +824,7 @@ static int do_sched_rt_period_timer(struct rt_bandwidth *rt_b, int overrun) ...@@ -824,8 +824,7 @@ static int do_sched_rt_period_timer(struct rt_bandwidth *rt_b, int overrun)
* off to kill the perturbations it causes anyway. Meanwhile, * off to kill the perturbations it causes anyway. Meanwhile,
* this maintains functionality for boot and/or troubleshooting. * this maintains functionality for boot and/or troubleshooting.
*/ */
if (rt_b == &root_task_group.rt_bandwidth) span = cpu_online_mask;
span = cpu_online_mask;
#endif #endif
for_each_cpu(i, span) { for_each_cpu(i, span) {
int enqueue = 0; int enqueue = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册