Unverified Commit 9bdcea47 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!7370 v2 sched: smart_grid: silence complier error

parents 34da964a 31f1bc03
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -9733,7 +9733,9 @@ int sched_cpu_activate(unsigned int cpu)
		static_branch_inc_cpuslocked(&sched_smt_present);
#endif
	set_cpu_active(cpu, true);
#ifdef CONFIG_QOS_SCHED_SMART_GRID
	tg_update_affinity_domains(cpu, 1);
#endif

	if (sched_smp_initialized) {
		sched_update_numa(cpu, true);
@@ -9823,7 +9825,9 @@ int sched_cpu_deactivate(unsigned int cpu)
		return ret;
	}
	sched_domains_numa_masks_clear(cpu);
#ifdef CONFIG_QOS_SCHED_SMART_GRID
	tg_update_affinity_domains(cpu, 0);
#endif
	return 0;
}

@@ -9947,7 +9951,10 @@ void __init sched_init_smp(void)
	sched_smp_initialized = true;

	sched_grid_zone_init();

#ifdef CONFIG_QOS_SCHED_SMART_GRID
	init_auto_affinity(&root_task_group);
#endif
}

static int __init migration_init(void)
+1 −1
Original line number Diff line number Diff line
@@ -7253,7 +7253,7 @@ static void destroy_auto_affinity(struct task_group *tg)
	tg->auto_affinity = NULL;
}
#else
static void destroy_auto_affinity(struct task_group *tg) {}
static void __maybe_unused destroy_auto_affinity(struct task_group *tg) {}

#ifdef CONFIG_QOS_SCHED_DYNAMIC_AFFINITY
static inline bool prefer_cpus_valid(struct task_struct *p);