sched: fix warning in kernel/sched.c
authorIngo Molnar <mingo@elte.hu>
Thu, 18 Dec 2008 23:53:40 +0000 (00:53 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 19 Dec 2008 08:21:57 +0000 (09:21 +0100)
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>
kernel/sched.c

index 8fc0d5aa43b1c6127c9d882c5bfa214f10f3c5d6..ae5ca3f9e776958a611e8e3be1adb85a9bd3441d 100644 (file)
@@ -3394,7 +3394,7 @@ out_balanced:
                *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;
        }