aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c20
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 */
53nodemask_t node_online_map __read_mostly = { { [0] = 1UL } }; 52nodemask_t node_states[NR_NODE_STATES] __read_mostly = {
54EXPORT_SYMBOL(node_online_map); 53 [N_POSSIBLE] = NODE_MASK_ALL,
55nodemask_t node_possible_map __read_mostly = NODE_MASK_ALL; 54 [N_ONLINE] = { { [0] = 1UL } },
56EXPORT_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};
63EXPORT_SYMBOL(node_states);
64
57unsigned long totalram_pages __read_mostly; 65unsigned long totalram_pages __read_mostly;
58unsigned long totalreserve_pages __read_mostly; 66unsigned long totalreserve_pages __read_mostly;
59long nr_swap_pages; 67long nr_swap_pages;