aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2009-03-30 21:00:26 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-03-30 21:00:26 -0400
commitd17abcd5417d84cfa8a225160481203a37dc81d4 (patch)
tree74ce2c425c5c6550acec90bc92c8a3f735f0d257 /init
parentdb6f204019380c788f1de06ee937bdbccd60e5c0 (diff)
parentbb75efddeaca89f8a67fd82cdcbaaf436cf17ca9 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-cpumask
* git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-cpumask: oprofile: Thou shalt not call __exit functions from __init functions cpumask: remove the now-obsoleted pcibus_to_cpumask(): generic cpumask: remove cpumask_t from core cpumask: convert rcutorture.c cpumask: use new cpumask_ functions in core code. cpumask: remove references to struct irqaction's mask field. cpumask: use mm_cpumask() wrapper: kernel/fork.c cpumask: use set_cpu_active in init/main.c cpumask: remove node_to_first_cpu cpumask: fix seq_bitmap_*() functions. cpumask: remove dangerous CPU_MASK_ALL_PTR, &CPU_MASK_ALL
Diffstat (limited to 'init')
-rw-r--r--init/main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/init/main.c b/init/main.c
index 6bf83afd654d..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) {
@@ -842,7 +841,7 @@ static int __init kernel_init(void * unused)
842 /* 841 /*
843 * init can run on any cpu. 842 * init can run on any cpu.
844 */ 843 */
845 set_cpus_allowed_ptr(current, CPU_MASK_ALL_PTR); 844 set_cpus_allowed_ptr(current, cpu_all_mask);
846 /* 845 /*
847 * Tell the world that we're going to be the grim 846 * Tell the world that we're going to be the grim
848 * reaper of innocent orphaned children. 847 * reaper of innocent orphaned children.