提交 2686c74f 编写于 作者: Z Zhang Qiao 提交者: Zheng Zengkai

sched: Unthrottle the throttled cfs rq when offline rq

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I3ZX4D
CVE: NA

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

In cpu hotplug case, when a cpu go to offline, we should unthrottle cfs_rq
which be throttled on this cpu, so they will be migrated to online cpu.
Signed-off-by: NZhang Qiao <zhangqiao22@huawei.com>
Signed-off-by: NZheng Zucheng <zhengzucheng@huawei.com>
Reviewed-by: NChen Hui <judy.chenhui@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 8733ecf1
......@@ -117,6 +117,7 @@ int __weak arch_asym_cpu_priority(int cpu)
#ifdef CONFIG_QOS_SCHED
static DEFINE_PER_CPU_SHARED_ALIGNED(struct list_head, qos_throttled_cfs_rq);
static int unthrottle_qos_cfs_rqs(int cpu);
#endif
#ifdef CONFIG_CFS_BANDWIDTH
......@@ -5374,6 +5375,10 @@ static void __maybe_unused unthrottle_offline_cfs_rqs(struct rq *rq)
unthrottle_cfs_rq(cfs_rq);
}
rcu_read_unlock();
#ifdef CONFIG_QOS_SCHED
unthrottle_qos_cfs_rqs(cpu_of(rq));
#endif
}
#else /* CONFIG_CFS_BANDWIDTH */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部