page_alloc: use N_MEMORY instead N_HIGH_MEMORY change the node_states initialization
[~shefty/rdma-dev.git] / arch / x86 / mm / init_64.c
index 3baff255adac6472570298d7e9ee60df75e93dfc..2ead3c8a4c8419da92a61fbba35eb695e5205dde 100644 (file)
@@ -630,7 +630,9 @@ void __init paging_init(void)
         *       numa support is not compiled in, and later node_set_state
         *       will not set it back.
         */
-       node_clear_state(0, N_NORMAL_MEMORY);
+       node_clear_state(0, N_MEMORY);
+       if (N_MEMORY != N_NORMAL_MEMORY)
+               node_clear_state(0, N_NORMAL_MEMORY);
 
        zone_sizes_init();
 }