Skip to content

Commit

Permalink
sched: fix warning in kernel/sched.c
Browse files Browse the repository at this point in the history
Impact: fix cpumask conversion bug

this warning:

  kernel/sched.c: In function ‘find_busiest_group’:
  kernel/sched.c:3429: warning: passing argument 1 of ‘__first_cpu’ from incompatible pointer type

shows that we forgot to convert a new patch to the new cpumask APIs.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Ingo Molnar committed Dec 19, 2008
1 parent 06aaf76 commit 9924da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -3394,7 +3394,7 @@ find_busiest_group(struct sched_domain *sd, int this_cpu,
*imbalance = min_load_per_task;
if (sched_mc_power_savings >= POWERSAVINGS_BALANCE_WAKEUP) {
cpu_rq(this_cpu)->rd->sched_mc_preferred_wakeup_cpu =
first_cpu(group_leader->cpumask);
cpumask_first(sched_group_cpus(group_leader));
}
return group_min;
}
Expand Down

0 comments on commit 9924da4

Please sign in to comment.