cpumask: Use accessors code in core
Impact: use new API cpu_*_map are going away in favour of cpu_*_mask, but const pointers. So we have accessors where we really do want to frob them. Archs will also need the (trivial) conversion before we can finally remove cpu_*_map. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Mike Travis <travis@sgi.com>
This commit is contained in:
parent
4f4b6c1a94
commit
915441b601
1 changed files with 3 additions and 3 deletions
|
@ -527,9 +527,9 @@ static void __init boot_cpu_init(void)
|
||||||
{
|
{
|
||||||
int cpu = smp_processor_id();
|
int cpu = smp_processor_id();
|
||||||
/* Mark the boot cpu "present", "online" etc for SMP and UP case */
|
/* Mark the boot cpu "present", "online" etc for SMP and UP case */
|
||||||
cpu_set(cpu, cpu_online_map);
|
set_cpu_online(cpu, true);
|
||||||
cpu_set(cpu, cpu_present_map);
|
set_cpu_present(cpu, true);
|
||||||
cpu_set(cpu, cpu_possible_map);
|
set_cpu_possible(cpu, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void __init __weak smp_setup_processor_id(void)
|
void __init __weak smp_setup_processor_id(void)
|
||||||
|
|
Loading…
Add table
Reference in a new issue