cpumask: use new cpumask functions throughout x86
[linux-2.6-block.git] / arch / x86 / kernel / cpu / proc.c
index 4dd610e226e00cdf9fa32509032701b8078ecb76..f93047fed79128cebc7d00e081e7108ef24b1c03 100644 (file)
@@ -143,9 +143,9 @@ static int show_cpuinfo(struct seq_file *m, void *v)
 static void *c_start(struct seq_file *m, loff_t *pos)
 {
        if (*pos == 0)  /* just in case, cpu 0 is not the first */
-               *pos = first_cpu(cpu_online_map);
+               *pos = cpumask_first(cpu_online_mask);
        else
-               *pos = next_cpu_nr(*pos - 1, cpu_online_map);
+               *pos = cpumask_next(*pos - 1, cpu_online_mask);
        if ((*pos) < nr_cpu_ids)
                return &cpu_data(*pos);
        return NULL;