diff options
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 71013e6bef25..0cc5b3e198e5 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -47,13 +47,21 @@ | |||
47 | #include "internal.h" | 47 | #include "internal.h" |
48 | 48 | ||
49 | /* | 49 | /* |
50 | * MCD - HACK: Find somewhere to initialize this EARLY, or make this | 50 | * Array of node states. |
51 | * initializer cleaner | ||
52 | */ | 51 | */ |
53 | nodemask_t node_online_map __read_mostly = { { [0] = 1UL } }; | 52 | nodemask_t node_states[NR_NODE_STATES] __read_mostly = { |
54 | EXPORT_SYMBOL(node_online_map); | 53 | [N_POSSIBLE] = NODE_MASK_ALL, |
55 | nodemask_t node_possible_map __read_mostly = NODE_MASK_ALL; | 54 | [N_ONLINE] = { { [0] = 1UL } }, |
56 | EXPORT_SYMBOL(node_possible_map); | 55 | #ifndef CONFIG_NUMA |
56 | [N_NORMAL_MEMORY] = { { [0] = 1UL } }, | ||
57 | #ifdef CONFIG_HIGHMEM | ||
58 | [N_HIGH_MEMORY] = { { [0] = 1UL } }, | ||
59 | #endif | ||
60 | [N_CPU] = { { [0] = 1UL } }, | ||
61 | #endif /* NUMA */ | ||
62 | }; | ||
63 | EXPORT_SYMBOL(node_states); | ||
64 | |||
57 | unsigned long totalram_pages __read_mostly; | 65 | unsigned long totalram_pages __read_mostly; |
58 | unsigned long totalreserve_pages __read_mostly; | 66 | unsigned long totalreserve_pages __read_mostly; |
59 | long nr_swap_pages; | 67 | long nr_swap_pages; |