summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2009-01-01 10:12:15 +1030
committerRusty Russell <rusty@rustcorp.com.au>2009-01-01 10:12:15 +1030
commit915441b601e6662e79f6c958e7be307967a96977 (patch)
tree633f7cc711d210671f526f297e48bb79f8dce4de /init
parent4f4b6c1a94a8735bbdc030a2911cf395495645b6 (diff)
downloadlwn-915441b601e6662e79f6c958e7be307967a96977.tar.gz
lwn-915441b601e6662e79f6c958e7be307967a96977.zip
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>
Diffstat (limited to 'init')
-rw-r--r--init/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/init/main.c b/init/main.c
index 2a7ce0f8e453..84d3732c0ce5 100644
--- a/init/main.c
+++ b/init/main.c
@@ -527,9 +527,9 @@ static void __init boot_cpu_init(void)
{
int cpu = smp_processor_id();
/* Mark the boot cpu "present", "online" etc for SMP and UP case */
- cpu_set(cpu, cpu_online_map);
- cpu_set(cpu, cpu_present_map);
- cpu_set(cpu, cpu_possible_map);
+ set_cpu_online(cpu, true);
+ set_cpu_present(cpu, true);
+ set_cpu_possible(cpu, true);
}
void __init __weak smp_setup_processor_id(void)