]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - init/main.c
cpumask: remove dangerous CPU_MASK_ALL_PTR, &CPU_MASK_ALL
[linux-2.6-omap-h63xx.git] / init / main.c
index 6441083f827355108980280d7c7dd08f1ec16f5e..1ac7ec78e60145bddb3aeed07d831e117eec8ee7 100644 (file)
@@ -98,7 +98,7 @@ static inline void mark_rodata_ro(void) { }
 extern void tc_init(void);
 #endif
 
-enum system_states system_state;
+enum system_states system_state __read_mostly;
 EXPORT_SYMBOL(system_state);
 
 /*
@@ -464,6 +464,7 @@ static noinline void __init_refok rest_init(void)
         * at least once to get things moving:
         */
        init_idle_bootup_task(current);
+       rcu_scheduler_starting();
        preempt_enable_no_resched();
        schedule();
        preempt_disable();
@@ -841,7 +842,7 @@ static int __init kernel_init(void * unused)
        /*
         * init can run on any cpu.
         */
-       set_cpus_allowed_ptr(current, CPU_MASK_ALL_PTR);
+       set_cpus_allowed_ptr(current, cpu_all_mask);
        /*
         * Tell the world that we're going to be the grim
         * reaper of innocent orphaned children.