diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2009-03-31 00:05:12 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2009-03-30 07:35:12 -0400 |
commit | 2b17fa506c418e9fb02bbbc7f426d2bbb5b247a6 (patch) | |
tree | bc010d85f71ff6f6f8fa3e7038d8ad5eb3526aec /init/main.c | |
parent | 0451fb2ebc4f65c265bb51d71a2fc986ebf20218 (diff) |
cpumask: use set_cpu_active in init/main.c
cpu_active_map is deprecated in favor of cpu_active_mask, which is
const for safety: we use accessors now (set_cpu_active) is we really
want to make a change.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'init/main.c')
-rw-r--r-- | init/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/init/main.c b/init/main.c index 1ac7ec78e601..d6b388fbffa6 100644 --- a/init/main.c +++ b/init/main.c | |||
@@ -407,8 +407,7 @@ static void __init smp_init(void) | |||
407 | * Set up the current CPU as possible to migrate to. | 407 | * Set up the current CPU as possible to migrate to. |
408 | * The other ones will be done by cpu_up/cpu_down() | 408 | * The other ones will be done by cpu_up/cpu_down() |
409 | */ | 409 | */ |
410 | cpu = smp_processor_id(); | 410 | set_cpu_active(smp_processor_id(), true); |
411 | cpu_set(cpu, cpu_active_map); | ||
412 | 411 | ||
413 | /* FIXME: This should be done in userspace --RR */ | 412 | /* FIXME: This should be done in userspace --RR */ |
414 | for_each_present_cpu(cpu) { | 413 | for_each_present_cpu(cpu) { |