Unverified Commit 3edd0f0e authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files
parents 46770813 a158905c
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -1142,12 +1142,15 @@ static int cpu_down_maps_locked(unsigned int cpu, enum cpuhp_state target)
	/*
	 * Ensure that the control task does not run on the to be offlined
	 * CPU to prevent a deadlock against cfs_b->period_timer.
	 * Also keep at least one housekeeping cpu onlined to avoid generating
	 * an empty sched_domain span.
	 */
	cpu = cpumask_any_but(cpu_online_mask, cpu);
	if (cpu >= nr_cpu_ids)
		return -EBUSY;
	for_each_cpu_and(cpu, cpu_online_mask, housekeeping_cpumask(HK_FLAG_DOMAIN)) {
		if (cpu != work.cpu)
			return work_on_cpu(cpu, __cpu_down_maps_locked, &work);
	}
	return -EBUSY;
}

static int cpu_down(unsigned int cpu, enum cpuhp_state target)
{