[PATCH -tip] sched: use cpumask_first() to fix compiler warning

From: Hiroshi Shimamoto
Date: Thu Dec 18 2008 - 19:35:12 EST


From: Hiroshi Shimamoto <h-shimamoto@xxxxxxxxxxxxx>

Use cpumask_first() and sched_group_cpus().

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

Signed-off-by: Hiroshi Shimamoto <h-shimamoto@xxxxxxxxxxxxx>
---
kernel/sched.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/sched.c b/kernel/sched.c
index 1b4dc4d..e75d6ed 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -3426,7 +3426,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;
}
--
1.6.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/