Unverified Commit 77d105c4 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!2363 skip smt expel when cpu down

Merge Pull Request from: @zhangwei123171 
 
skip smt expel when cpu down 
 
Link:https://gitee.com/openeuler/kernel/pulls/2363

 

Reviewed-by: default avatarzhao xiaoqiang <zhaoxiaoqiang11@jd.com>
Reviewed-by: default avatarZucheng Zheng <zhengzucheng@huawei.com>
Reviewed-by: default avatarsanglipeng <sanglipeng1@jd.com>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
parents 217a0aae c5ce59ba
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -8163,6 +8163,9 @@ static void qos_smt_send_ipi(int this_cpu)

		rq = cpu_rq(cpu);

		if (unlikely(!rq->online))
			continue;

		/*
		 * There are two cases where current don't need to send
		 * scheduler_ipi:
@@ -8301,7 +8304,7 @@ pick_next_task_fair(struct rq *rq, struct task_struct *prev, struct rq_flags *rf

again:
#ifdef CONFIG_QOS_SCHED_SMT_EXPELLER
	if (qos_smt_expelled(this_cpu) && !__this_cpu_read(qos_cpu_overload)) {
	if (rq->online && qos_smt_expelled(this_cpu) && !__this_cpu_read(qos_cpu_overload)) {
		__this_cpu_write(qos_smt_status, CPU_SMT_EXPELLED);

		if (!qos_timer_is_activated(this_cpu))