]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/sched_rt.c
Merge branches 'sched/rt' and 'sched/urgent' into sched/core
[linux-2.6-omap-h63xx.git] / kernel / sched_rt.c
index 48d1f6e8497ae60a082962e91a47ae3d535e6d16..c79dc7844012d7b69926298673bdffc6fa3ff79b 100644 (file)
@@ -1130,8 +1130,8 @@ static inline int pick_optimal_cpu(int this_cpu, cpumask_t *mask)
        if ((this_cpu != -1) && cpu_isset(this_cpu, *mask))
                return this_cpu;
 
-       first = first_cpu(*mask);
-       if (first != NR_CPUS)
+       first = cpumask_first(mask);
+       if (first < nr_cpu_ids)
                return first;
 
        return -1;