aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/Kconfig2
-rw-r--r--arch/x86/include/asm/mmzone_32.h43
2 files changed, 6 insertions, 39 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index d3f6eadfd4ba..6fd3b2302ed9 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -1111,7 +1111,7 @@ config NODES_SHIFT
1111 Specify the maximum number of NUMA Nodes available on the target 1111 Specify the maximum number of NUMA Nodes available on the target
1112 system. Increases memory reserved to accomodate various tables. 1112 system. Increases memory reserved to accomodate various tables.
1113 1113
1114config HAVE_ARCH_BOOTMEM_NODE 1114config HAVE_ARCH_BOOTMEM
1115 def_bool y 1115 def_bool y
1116 depends on X86_32 && NUMA 1116 depends on X86_32 && NUMA
1117 1117
diff --git a/arch/x86/include/asm/mmzone_32.h b/arch/x86/include/asm/mmzone_32.h
index 07f1af494ca5..1e0fa9e63afa 100644
--- a/arch/x86/include/asm/mmzone_32.h
+++ b/arch/x86/include/asm/mmzone_32.h
@@ -93,45 +93,12 @@ static inline int pfn_valid(int pfn)
93#endif /* CONFIG_DISCONTIGMEM */ 93#endif /* CONFIG_DISCONTIGMEM */
94 94
95#ifdef CONFIG_NEED_MULTIPLE_NODES 95#ifdef CONFIG_NEED_MULTIPLE_NODES
96 96/* always use node 0 for bootmem on this numa platform */
97/* 97#define alloc_bootmem_core(__bdata, size, align, goal, limit) \
98 * Following are macros that are specific to this numa platform.
99 */
100#define reserve_bootmem(addr, size, flags) \
101 reserve_bootmem_node(NODE_DATA(0), (addr), (size), (flags))
102#define alloc_bootmem(x) \
103 __alloc_bootmem_node(NODE_DATA(0), (x), SMP_CACHE_BYTES, __pa(MAX_DMA_ADDRESS))
104#define alloc_bootmem_nopanic(x) \
105 __alloc_bootmem_node_nopanic(NODE_DATA(0), (x), SMP_CACHE_BYTES, \
106 __pa(MAX_DMA_ADDRESS))
107#define alloc_bootmem_low(x) \
108 __alloc_bootmem_node(NODE_DATA(0), (x), SMP_CACHE_BYTES, 0)
109#define alloc_bootmem_pages(x) \
110 __alloc_bootmem_node(NODE_DATA(0), (x), PAGE_SIZE, __pa(MAX_DMA_ADDRESS))
111#define alloc_bootmem_pages_nopanic(x) \
112 __alloc_bootmem_node_nopanic(NODE_DATA(0), (x), PAGE_SIZE, \
113 __pa(MAX_DMA_ADDRESS))
114#define alloc_bootmem_low_pages(x) \
115 __alloc_bootmem_node(NODE_DATA(0), (x), PAGE_SIZE, 0)
116#define alloc_bootmem_node(pgdat, x) \
117({ \
118 struct pglist_data __maybe_unused \
119 *__alloc_bootmem_node__pgdat = (pgdat); \
120 __alloc_bootmem_node(NODE_DATA(0), (x), SMP_CACHE_BYTES, \
121 __pa(MAX_DMA_ADDRESS)); \
122})
123#define alloc_bootmem_pages_node(pgdat, x) \
124({ \
125 struct pglist_data __maybe_unused \
126 *__alloc_bootmem_node__pgdat = (pgdat); \
127 __alloc_bootmem_node(NODE_DATA(0), (x), PAGE_SIZE, \
128 __pa(MAX_DMA_ADDRESS)); \
129})
130#define alloc_bootmem_low_pages_node(pgdat, x) \
131({ \ 98({ \
132 struct pglist_data __maybe_unused \ 99 bootmem_data_t __maybe_unused * __abm_bdata_dummy = (__bdata); \
133 *__alloc_bootmem_node__pgdat = (pgdat); \ 100 __alloc_bootmem_core(NODE_DATA(0)->bdata, \
134 __alloc_bootmem_node(NODE_DATA(0), (x), PAGE_SIZE, 0); \ 101 (size), (align), (goal), (limit)); \
135}) 102})
136#endif /* CONFIG_NEED_MULTIPLE_NODES */ 103#endif /* CONFIG_NEED_MULTIPLE_NODES */
137 104