]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - init/main.c
cpuset,mm: update tasks' mems_allowed in time
[net-next-2.6.git] / init / main.c
index f6204f712e7c639652d06cbefb70bba4df2ae7a1..5e0d3f047eaf14127cd3decb749b7652f19d1c3a 100644 (file)
@@ -670,7 +670,6 @@ asmlinkage void __init start_kernel(void)
                initrd_start = 0;
        }
 #endif
-       cpuset_init_early();
        page_cgroup_init();
        enable_debug_pagealloc();
        cpu_hotplug_init();
@@ -867,6 +866,11 @@ static noinline int init_post(void)
 static int __init kernel_init(void * unused)
 {
        lock_kernel();
+
+       /*
+        * init can allocate pages on any node
+        */
+       set_mems_allowed(node_possible_map);
        /*
         * init can run on any cpu.
         */