Unverified Commit b3dd80fc authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files
parents 75f57027 4382392c
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -14722,10 +14722,6 @@ void free_fair_sched_group(struct task_group *tg)
	int i;

	for_each_possible_cpu(i) {
#ifdef CONFIG_QOS_SCHED
		if (tg->cfs_rq && tg->cfs_rq[i])
			unthrottle_qos_sched_group(tg->cfs_rq[i]);
#endif
		if (tg->cfs_rq)
			kfree(tg->cfs_rq[i]);
		if (tg->se)
@@ -14812,6 +14808,11 @@ void unregister_fair_sched_group(struct task_group *tg)
		if (tg->se[cpu])
			remove_entity_load_avg(tg->se[cpu]);

		#ifdef CONFIG_QOS_SCHED
			if (tg->cfs_rq && tg->cfs_rq[cpu])
				unthrottle_qos_sched_group(tg->cfs_rq[cpu]);
		#endif

		/*
		 * Only empty task groups can be destroyed; so we can speculatively
		 * check on_list without danger of it being re-added.