Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 13318a71 authored by Miao Xie's avatar Miao Xie Committed by Ingo Molnar
Browse files

sched: use group_first_cpu() instead of cpumask_first(sched_group_cpus())



Impact: cleanup

This patch changes cpumask_first(sched_group_cpus()) to group_first_cpu()
for maintainability.

Signed-off-by: default avatarMiao Xie <miaox@cn.fujitsu.com>
Acked-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 78ddb08f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -7995,7 +7995,7 @@ static void init_numa_sched_groups_power(struct sched_group *group_head)
			struct sched_domain *sd;

			sd = &per_cpu(phys_domains, j).sd;
			if (j != cpumask_first(sched_group_cpus(sd->groups))) {
			if (j != group_first_cpu(sd->groups)) {
				/*
				 * Only add "power" once for each
				 * physical package.
@@ -8073,7 +8073,7 @@ static void init_sched_groups_power(int cpu, struct sched_domain *sd)

	WARN_ON(!sd || !sd->groups);

	if (cpu != cpumask_first(sched_group_cpus(sd->groups)))
	if (cpu != group_first_cpu(sd->groups))
		return;

	child = sd->child;