Skip to content

Commit

Permalink
cpumask: Use accessors code.: sparc64
Browse files Browse the repository at this point in the history
Impact: use new API

Use the accessors rather than frobbing bits directly.  Most of this is
in arch code I haven't even compiled, but is straightforward.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Mike Travis <travis@sgi.com>
  • Loading branch information
Rusty Russell committed Mar 16, 2009
1 parent fe73971 commit 8922907
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion arch/sparc/kernel/mdesc.c
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ static void __init report_platform_properties(void)
max_cpu = NR_CPUS;
}
for (i = 0; i < max_cpu; i++)
cpu_set(i, cpu_possible_map);
set_cpu_possible(i, true);
}
#endif

Expand Down
4 changes: 2 additions & 2 deletions arch/sparc/kernel/prom_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,8 +518,8 @@ void __init of_fill_in_cpu_data(void)
}

#ifdef CONFIG_SMP
cpu_set(cpuid, cpu_present_map);
cpu_set(cpuid, cpu_possible_map);
set_cpu_present(cpuid, true);
set_cpu_possible(cpuid, true);
#endif
}

Expand Down

0 comments on commit 8922907

Please sign in to comment.