cpumask: Use accessors for cpu_*_mask: sh
Use the accessors rather than frobbing bits directly (the new versions are const). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Mike Travis <travis@sgi.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:

committed by
Paul Mundt

parent
74c86d6757
commit
e09377bae4
@@ -35,8 +35,7 @@ void __init plat_smp_setup(void)
|
||||
unsigned int cpu = 0;
|
||||
int i, num;
|
||||
|
||||
cpus_clear(cpu_possible_map);
|
||||
cpu_set(cpu, cpu_possible_map);
|
||||
init_cpu_possible(cpumask_of(cpu));
|
||||
|
||||
__cpu_number_map[0] = 0;
|
||||
__cpu_logical_map[0] = 0;
|
||||
@@ -46,7 +45,7 @@ void __init plat_smp_setup(void)
|
||||
* for the total number of cores.
|
||||
*/
|
||||
for (i = 1, num = 0; i < NR_CPUS; i++) {
|
||||
cpu_set(i, cpu_possible_map);
|
||||
set_cpu_possible(i, true);
|
||||
__cpu_number_map[i] = ++num;
|
||||
__cpu_logical_map[num] = i;
|
||||
}
|
||||
|
Reference in New Issue
Block a user