cpuset: fix the problem that cpuset_mem_spread_node() returns an offline node
[linux-2.6.git] / init / main.c
index a1ab78c..cbead27 100644 (file)
@@ -858,7 +858,7 @@ static int __init kernel_init(void * unused)
        /*
         * init can allocate pages on any node
         */
-       set_mems_allowed(node_possible_map);
+       set_mems_allowed(node_states[N_HIGH_MEMORY]);
        /*
         * init can run on any cpu.
         */