~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to arch/sparc/kernel/cpumap.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
202
202
        new_tree->total_nodes = n;
203
203
        memcpy(&new_tree->level, tmp_level, sizeof(tmp_level));
204
204
 
205
 
        prev_cpu = cpu = first_cpu(cpu_online_map);
 
205
        prev_cpu = cpu = cpumask_first(cpu_online_mask);
206
206
 
207
207
        /* Initialize all levels in the tree with the first CPU */
208
208
        for (level = CPUINFO_LVL_PROC; level >= CPUINFO_LVL_ROOT; level--) {
381
381
        }
382
382
 
383
383
        /* Impossible, since num_online_cpus() <= num_possible_cpus() */
384
 
        return first_cpu(cpu_online_map);
 
384
        return cpumask_first(cpu_online_mask);
385
385
}
386
386
 
387
387
static int _map_to_cpu(unsigned int index)