blob: 44845842e7229d3233597b9d42ad435011bf0d8b [file] [log] [blame]
Glauber de Oliveira Costa4fe29a82008-03-19 14:25:23 -03001#include <linux/kernel.h>
2#include <linux/module.h>
3#include <linux/init.h>
4#include <linux/bootmem.h>
5#include <linux/percpu.h>
Bernhard Walle1ecd2762008-06-20 15:38:22 +02006#include <linux/kexec.h>
Yinghai Lu17b4cce2008-06-21 21:02:20 -07007#include <linux/crash_dump.h>
Jaswinder Singh Rajput8a87dd92009-01-04 17:04:26 +05308#include <linux/smp.h>
9#include <linux/topology.h>
Glauber de Oliveira Costa4fe29a82008-03-19 14:25:23 -030010#include <asm/sections.h>
11#include <asm/processor.h>
12#include <asm/setup.h>
Alexey Starikovskiy0fc09062008-04-04 23:40:48 +040013#include <asm/mpspec.h>
Alexey Starikovskiy76eb4132008-04-04 23:40:41 +040014#include <asm/apicdef.h>
Bernhard Walle1ecd2762008-06-20 15:38:22 +020015#include <asm/highmem.h>
Jaswinder Singh Rajput06879032009-01-10 12:17:37 +053016#include <asm/cpumask.h>
Alexey Starikovskiy76eb4132008-04-04 23:40:41 +040017
Mike Travisc90aa892009-01-13 20:41:34 +090018#ifdef CONFIG_DEBUG_PER_CPU_MAPS
19# define DBG(x...) printk(KERN_DEBUG x)
20#else
21# define DBG(x...)
22#endif
23
James Bottomleyf8955eb2008-05-10 09:01:48 -050024#ifdef CONFIG_X86_LOCAL_APIC
Alexey Starikovskiy2fe60142008-04-04 23:41:44 +040025unsigned int num_processors;
26unsigned disabled_cpus __cpuinitdata;
27/* Processor that is doing the boot up */
28unsigned int boot_cpu_physical_apicid = -1U;
29EXPORT_SYMBOL(boot_cpu_physical_apicid);
Jaswinder Singh Rajput8a87dd92009-01-04 17:04:26 +053030unsigned int max_physical_apicid;
Alexey Starikovskiy2fe60142008-04-04 23:41:44 +040031
Alexey Starikovskiy0fc09062008-04-04 23:40:48 +040032/* Bitmask of physically existing CPUs */
33physid_mask_t phys_cpu_present_map;
James Bottomleyf8955eb2008-05-10 09:01:48 -050034#endif
Alexey Starikovskiy0fc09062008-04-04 23:40:48 +040035
Mike Travisc90aa892009-01-13 20:41:34 +090036/*
37 * Map cpu index to physical APIC ID
38 */
Mike Travis23ca4bb2008-05-12 21:21:12 +020039DEFINE_EARLY_PER_CPU(u16, x86_cpu_to_apicid, BAD_APICID);
40DEFINE_EARLY_PER_CPU(u16, x86_bios_cpu_apicid, BAD_APICID);
41EXPORT_EARLY_PER_CPU_SYMBOL(x86_cpu_to_apicid);
42EXPORT_EARLY_PER_CPU_SYMBOL(x86_bios_cpu_apicid);
43
44#if defined(CONFIG_NUMA) && defined(CONFIG_X86_64)
Mike Travisc90aa892009-01-13 20:41:34 +090045#define X86_64_NUMA 1 /* (used later) */
Mike Travis23ca4bb2008-05-12 21:21:12 +020046
Mike Travisc90aa892009-01-13 20:41:34 +090047/*
48 * Map cpu index to node index
49 */
Mike Travis23ca4bb2008-05-12 21:21:12 +020050DEFINE_EARLY_PER_CPU(int, x86_cpu_to_node_map, NUMA_NO_NODE);
51EXPORT_EARLY_PER_CPU_SYMBOL(x86_cpu_to_node_map);
Mike Travis9f248bd2008-05-12 21:21:12 +020052
Mike Travisc90aa892009-01-13 20:41:34 +090053/*
54 * Which logical CPUs are on which nodes
55 */
Mike Travis9f248bd2008-05-12 21:21:12 +020056cpumask_t *node_to_cpumask_map;
57EXPORT_SYMBOL(node_to_cpumask_map);
58
Mike Travisc90aa892009-01-13 20:41:34 +090059/*
60 * Setup node_to_cpumask_map
61 */
Mike Travis9f248bd2008-05-12 21:21:12 +020062static void __init setup_node_to_cpumask_map(void);
63
64#else
65static inline void setup_node_to_cpumask_map(void) { }
Mike Travis23ca4bb2008-05-12 21:21:12 +020066#endif
67
Mike Travisc90aa892009-01-13 20:41:34 +090068#ifdef CONFIG_HAVE_SETUP_PER_CPU_AREA
Glauber de Oliveira Costa4fe29a82008-03-19 14:25:23 -030069/*
70 * Copy data used in early init routines from the initial arrays to the
71 * per cpu data areas. These arrays then become expendable and the
72 * *_early_ptr's are zeroed indicating that the static arrays are gone.
73 */
74static void __init setup_per_cpu_maps(void)
75{
76 int cpu;
77
78 for_each_possible_cpu(cpu) {
Mike Travis23ca4bb2008-05-12 21:21:12 +020079 per_cpu(x86_cpu_to_apicid, cpu) =
80 early_per_cpu_map(x86_cpu_to_apicid, cpu);
Mike Travisb447a462008-03-25 15:06:51 -070081 per_cpu(x86_bios_cpu_apicid, cpu) =
Mike Travis23ca4bb2008-05-12 21:21:12 +020082 early_per_cpu_map(x86_bios_cpu_apicid, cpu);
83#ifdef X86_64_NUMA
Mike Travisb447a462008-03-25 15:06:51 -070084 per_cpu(x86_cpu_to_node_map, cpu) =
Mike Travis23ca4bb2008-05-12 21:21:12 +020085 early_per_cpu_map(x86_cpu_to_node_map, cpu);
Glauber de Oliveira Costa4fe29a82008-03-19 14:25:23 -030086#endif
Glauber de Oliveira Costa4fe29a82008-03-19 14:25:23 -030087 }
88
89 /* indicate the early static arrays will soon be gone */
Mike Travis23ca4bb2008-05-12 21:21:12 +020090 early_per_cpu_ptr(x86_cpu_to_apicid) = NULL;
91 early_per_cpu_ptr(x86_bios_cpu_apicid) = NULL;
92#ifdef X86_64_NUMA
93 early_per_cpu_ptr(x86_cpu_to_node_map) = NULL;
Glauber de Oliveira Costa4fe29a82008-03-19 14:25:23 -030094#endif
95}
96
97#ifdef CONFIG_X86_32
98/*
99 * Great future not-so-futuristic plan: make i386 and x86_64 do it
100 * the same way
101 */
102unsigned long __per_cpu_offset[NR_CPUS] __read_mostly;
103EXPORT_SYMBOL(__per_cpu_offset);
Mike Travis3461b0a2008-05-12 21:21:13 +0200104static inline void setup_cpu_pda_map(void) { }
105
106#elif !defined(CONFIG_SMP)
107static inline void setup_cpu_pda_map(void) { }
108
109#else /* CONFIG_SMP && CONFIG_X86_64 */
110
111/*
112 * Allocate cpu_pda pointer table and array via alloc_bootmem.
113 */
114static void __init setup_cpu_pda_map(void)
115{
116 char *pda;
117 struct x8664_pda **new_cpu_pda;
118 unsigned long size;
119 int cpu;
120
121 size = roundup(sizeof(struct x8664_pda), cache_line_size());
122
123 /* allocate cpu_pda array and pointer table */
124 {
125 unsigned long tsize = nr_cpu_ids * sizeof(void *);
126 unsigned long asize = size * (nr_cpu_ids - 1);
127
128 tsize = roundup(tsize, cache_line_size());
129 new_cpu_pda = alloc_bootmem(tsize + asize);
130 pda = (char *)new_cpu_pda + tsize;
131 }
132
133 /* initialize pointer table to static pda's */
134 for_each_possible_cpu(cpu) {
135 if (cpu == 0) {
136 /* leave boot cpu pda in place */
137 new_cpu_pda[0] = cpu_pda(0);
138 continue;
139 }
140 new_cpu_pda[cpu] = (struct x8664_pda *)pda;
141 new_cpu_pda[cpu]->in_bootmem = 1;
142 pda += size;
143 }
144
145 /* point to new pointer table */
146 _cpu_pda = new_cpu_pda;
147}
Mike Travisc2d1cec2009-01-04 05:18:03 -0800148
149#endif /* CONFIG_SMP && CONFIG_X86_64 */
150
151#ifdef CONFIG_X86_64
152
153/* correctly size the local cpu masks */
154static void setup_cpu_local_masks(void)
155{
156 alloc_bootmem_cpumask_var(&cpu_initialized_mask);
157 alloc_bootmem_cpumask_var(&cpu_callin_mask);
158 alloc_bootmem_cpumask_var(&cpu_callout_mask);
159 alloc_bootmem_cpumask_var(&cpu_sibling_setup_mask);
160}
161
162#else /* CONFIG_X86_32 */
163
164static inline void setup_cpu_local_masks(void)
165{
166}
167
168#endif /* CONFIG_X86_32 */
Glauber de Oliveira Costa4fe29a82008-03-19 14:25:23 -0300169
170/*
171 * Great future plan:
172 * Declare PDA itself and support (irqstack,tss,pgd) as per cpu data.
173 * Always point %gs to its beginning
174 */
175void __init setup_per_cpu_areas(void)
176{
Thomas Gleixnerd6c88a52008-10-15 15:27:23 +0200177 ssize_t size, old_size;
Mike Travis3461b0a2008-05-12 21:21:13 +0200178 char *ptr;
179 int cpu;
Yinghai Lu1f8ff032008-08-19 20:49:45 -0700180 unsigned long align = 1;
Glauber de Oliveira Costa4fe29a82008-03-19 14:25:23 -0300181
Mike Travis3461b0a2008-05-12 21:21:13 +0200182 /* Setup cpu_pda map */
183 setup_cpu_pda_map();
184
Glauber de Oliveira Costa4fe29a82008-03-19 14:25:23 -0300185 /* Copy section for each CPU (we discard the original) */
Yinghai Lu1f3fcd42008-08-19 20:49:44 -0700186 old_size = PERCPU_ENOUGH_ROOM;
Yinghai Lu1f8ff032008-08-19 20:49:45 -0700187 align = max_t(unsigned long, PAGE_SIZE, align);
Thomas Gleixnerd6c88a52008-10-15 15:27:23 +0200188 size = roundup(old_size, align);
Mike Travisa1681962008-12-16 17:33:53 -0800189
Cyrill Gorcunovab143982009-01-02 21:51:32 +0300190 pr_info("NR_CPUS:%d nr_cpumask_bits:%d nr_cpu_ids:%d nr_node_ids:%d\n",
Mike Travisa1681962008-12-16 17:33:53 -0800191 NR_CPUS, nr_cpumask_bits, nr_cpu_ids, nr_node_ids);
192
Cyrill Gorcunovab143982009-01-02 21:51:32 +0300193 pr_info("PERCPU: Allocating %zd bytes of per cpu data\n", size);
Mike Travisb447a462008-03-25 15:06:51 -0700194
Mike Travis3461b0a2008-05-12 21:21:13 +0200195 for_each_possible_cpu(cpu) {
Glauber de Oliveira Costa4fe29a82008-03-19 14:25:23 -0300196#ifndef CONFIG_NEED_MULTIPLE_NODES
Yinghai Lu1f8ff032008-08-19 20:49:45 -0700197 ptr = __alloc_bootmem(size, align,
198 __pa(MAX_DMA_ADDRESS));
Glauber de Oliveira Costa4fe29a82008-03-19 14:25:23 -0300199#else
Mike Travis3461b0a2008-05-12 21:21:13 +0200200 int node = early_cpu_to_node(cpu);
Mike Travisb447a462008-03-25 15:06:51 -0700201 if (!node_online(node) || !NODE_DATA(node)) {
Yinghai Lu1f8ff032008-08-19 20:49:45 -0700202 ptr = __alloc_bootmem(size, align,
203 __pa(MAX_DMA_ADDRESS));
Cyrill Gorcunovab143982009-01-02 21:51:32 +0300204 pr_info("cpu %d has no node %d or node-local memory\n",
Mike Travis3461b0a2008-05-12 21:21:13 +0200205 cpu, node);
Cyrill Gorcunovab143982009-01-02 21:51:32 +0300206 pr_debug("per cpu data for cpu%d at %016lx\n",
207 cpu, __pa(ptr));
208 } else {
Yinghai Lu1f8ff032008-08-19 20:49:45 -0700209 ptr = __alloc_bootmem_node(NODE_DATA(node), size, align,
210 __pa(MAX_DMA_ADDRESS));
Cyrill Gorcunovab143982009-01-02 21:51:32 +0300211 pr_debug("per cpu data for cpu%d on node%d at %016lx\n",
212 cpu, node, __pa(ptr));
Yinghai Lua677f582008-07-29 00:37:10 -0700213 }
Glauber de Oliveira Costa4fe29a82008-03-19 14:25:23 -0300214#endif
Mike Travis3461b0a2008-05-12 21:21:13 +0200215 per_cpu_offset(cpu) = ptr - __per_cpu_start;
Tejun Heo3e5d8f92009-01-13 20:41:35 +0900216 memcpy(ptr, __per_cpu_load, __per_cpu_end - __per_cpu_start);
Mike Travisc90aa892009-01-13 20:41:34 +0900217
218 DBG("PERCPU: cpu %4d %p\n", cpu, ptr);
Glauber de Oliveira Costa4fe29a82008-03-19 14:25:23 -0300219 }
220
Mike Travisb447a462008-03-25 15:06:51 -0700221 /* Setup percpu data maps */
Glauber de Oliveira Costa4fe29a82008-03-19 14:25:23 -0300222 setup_per_cpu_maps();
Mike Travis9f0e8d02008-04-04 18:11:01 -0700223
Mike Travis9f248bd2008-05-12 21:21:12 +0200224 /* Setup node to cpumask map */
225 setup_node_to_cpumask_map();
Mike Travisc2d1cec2009-01-04 05:18:03 -0800226
227 /* Setup cpu initialized, callin, callout masks */
228 setup_cpu_local_masks();
Glauber de Oliveira Costa4fe29a82008-03-19 14:25:23 -0300229}
230
231#endif
Huang, Yingc45a7072008-06-02 14:26:25 +0800232
Mike Travis23ca4bb2008-05-12 21:21:12 +0200233#ifdef X86_64_NUMA
Mike Travis9f248bd2008-05-12 21:21:12 +0200234
235/*
236 * Allocate node_to_cpumask_map based on number of available nodes
237 * Requires node_possible_map to be valid.
238 *
239 * Note: node_to_cpumask() is not valid until after this is done.
Mike Travisc90aa892009-01-13 20:41:34 +0900240 * (Use CONFIG_DEBUG_PER_CPU_MAPS to check this.)
Mike Travis9f248bd2008-05-12 21:21:12 +0200241 */
242static void __init setup_node_to_cpumask_map(void)
243{
244 unsigned int node, num = 0;
245 cpumask_t *map;
246
247 /* setup nr_node_ids if not done yet */
248 if (nr_node_ids == MAX_NUMNODES) {
249 for_each_node_mask(node, node_possible_map)
250 num = node;
251 nr_node_ids = num + 1;
252 }
253
254 /* allocate the map */
255 map = alloc_bootmem_low(nr_node_ids * sizeof(cpumask_t));
Mike Travisc90aa892009-01-13 20:41:34 +0900256 DBG("node_to_cpumask_map at %p for %d nodes\n", map, nr_node_ids);
Mike Travis9f248bd2008-05-12 21:21:12 +0200257
Gustavo F. Padovan55410792008-10-15 10:37:04 -0300258 pr_debug("Node to cpumask map at %p for %d nodes\n",
Thomas Gleixnercfc1b9a2008-07-21 21:35:38 +0200259 map, nr_node_ids);
Mike Travis9f248bd2008-05-12 21:21:12 +0200260
261 /* node_to_cpumask() will now work */
262 node_to_cpumask_map = map;
263}
264
Mike Travis23ca4bb2008-05-12 21:21:12 +0200265void __cpuinit numa_set_node(int cpu, int node)
266{
267 int *cpu_to_node_map = early_per_cpu_ptr(x86_cpu_to_node_map);
268
Mike Travisc90aa892009-01-13 20:41:34 +0900269 /* early setting, no percpu area yet */
270 if (cpu_to_node_map) {
Mike Travis23ca4bb2008-05-12 21:21:12 +0200271 cpu_to_node_map[cpu] = node;
Mike Travisc90aa892009-01-13 20:41:34 +0900272 return;
273 }
Mike Travis23ca4bb2008-05-12 21:21:12 +0200274
Mike Travisc90aa892009-01-13 20:41:34 +0900275#ifdef CONFIG_DEBUG_PER_CPU_MAPS
276 if (cpu >= nr_cpu_ids || !per_cpu_offset(cpu)) {
277 printk(KERN_ERR "numa_set_node: invalid cpu# (%d)\n", cpu);
278 dump_stack();
279 return;
280 }
281#endif
282 per_cpu(x86_cpu_to_node_map, cpu) = node;
Mike Travis23ca4bb2008-05-12 21:21:12 +0200283
Mike Travisc90aa892009-01-13 20:41:34 +0900284 if (node != NUMA_NO_NODE)
285 cpu_pda(cpu)->nodenumber = node;
Mike Travis23ca4bb2008-05-12 21:21:12 +0200286}
287
288void __cpuinit numa_clear_node(int cpu)
289{
290 numa_set_node(cpu, NUMA_NO_NODE);
291}
292
Mike Travis9f248bd2008-05-12 21:21:12 +0200293#ifndef CONFIG_DEBUG_PER_CPU_MAPS
294
Mike Travis23ca4bb2008-05-12 21:21:12 +0200295void __cpuinit numa_add_cpu(int cpu)
296{
297 cpu_set(cpu, node_to_cpumask_map[early_cpu_to_node(cpu)]);
298}
299
300void __cpuinit numa_remove_cpu(int cpu)
301{
Mike Travisc90aa892009-01-13 20:41:34 +0900302 cpu_clear(cpu, node_to_cpumask_map[early_cpu_to_node(cpu)]);
Mike Travis23ca4bb2008-05-12 21:21:12 +0200303}
Mike Travis23ca4bb2008-05-12 21:21:12 +0200304
Mike Travis9f248bd2008-05-12 21:21:12 +0200305#else /* CONFIG_DEBUG_PER_CPU_MAPS */
306
307/*
308 * --------- debug versions of the numa functions ---------
309 */
310static void __cpuinit numa_set_cpumask(int cpu, int enable)
311{
Mike Travisc90aa892009-01-13 20:41:34 +0900312 int node = early_cpu_to_node(cpu);
Mike Travis9f248bd2008-05-12 21:21:12 +0200313 cpumask_t *mask;
314 char buf[64];
315
316 if (node_to_cpumask_map == NULL) {
317 printk(KERN_ERR "node_to_cpumask_map NULL\n");
318 dump_stack();
319 return;
320 }
321
322 mask = &node_to_cpumask_map[node];
323 if (enable)
324 cpu_set(cpu, *mask);
325 else
326 cpu_clear(cpu, *mask);
327
Rusty Russell29c01772008-12-13 21:20:25 +1030328 cpulist_scnprintf(buf, sizeof(buf), mask);
Mike Travis9f248bd2008-05-12 21:21:12 +0200329 printk(KERN_DEBUG "%s cpu %d node %d: mask now %s\n",
Jaswinder Singh Rajput8a87dd92009-01-04 17:04:26 +0530330 enable ? "numa_add_cpu" : "numa_remove_cpu", cpu, node, buf);
331}
Mike Travis9f248bd2008-05-12 21:21:12 +0200332
333void __cpuinit numa_add_cpu(int cpu)
334{
335 numa_set_cpumask(cpu, 1);
336}
337
338void __cpuinit numa_remove_cpu(int cpu)
339{
340 numa_set_cpumask(cpu, 0);
341}
Mike Travis23ca4bb2008-05-12 21:21:12 +0200342
343int cpu_to_node(int cpu)
344{
345 if (early_per_cpu_ptr(x86_cpu_to_node_map)) {
346 printk(KERN_WARNING
347 "cpu_to_node(%d): usage too early!\n", cpu);
348 dump_stack();
349 return early_per_cpu_ptr(x86_cpu_to_node_map)[cpu];
350 }
351 return per_cpu(x86_cpu_to_node_map, cpu);
352}
353EXPORT_SYMBOL(cpu_to_node);
354
Mike Travis9f248bd2008-05-12 21:21:12 +0200355/*
356 * Same function as cpu_to_node() but used if called before the
357 * per_cpu areas are setup.
358 */
Mike Travis23ca4bb2008-05-12 21:21:12 +0200359int early_cpu_to_node(int cpu)
360{
361 if (early_per_cpu_ptr(x86_cpu_to_node_map))
362 return early_per_cpu_ptr(x86_cpu_to_node_map)[cpu];
363
364 if (!per_cpu_offset(cpu)) {
365 printk(KERN_WARNING
366 "early_cpu_to_node(%d): no per_cpu area!\n", cpu);
Mike Travis9f248bd2008-05-12 21:21:12 +0200367 dump_stack();
Mike Travis23ca4bb2008-05-12 21:21:12 +0200368 return NUMA_NO_NODE;
369 }
370 return per_cpu(x86_cpu_to_node_map, cpu);
371}
Mike Travis9f248bd2008-05-12 21:21:12 +0200372
Mike Travis6a2f47c2008-06-27 10:10:13 -0700373
374/* empty cpumask */
375static const cpumask_t cpu_mask_none;
376
Mike Travis9f248bd2008-05-12 21:21:12 +0200377/*
378 * Returns a pointer to the bitmask of CPUs on Node 'node'.
379 */
Rusty Russell393d68f2008-12-26 22:23:38 +1030380const cpumask_t *cpumask_of_node(int node)
Mike Travis9f248bd2008-05-12 21:21:12 +0200381{
382 if (node_to_cpumask_map == NULL) {
383 printk(KERN_WARNING
Rusty Russell393d68f2008-12-26 22:23:38 +1030384 "cpumask_of_node(%d): no node_to_cpumask_map!\n",
Mike Travis9f248bd2008-05-12 21:21:12 +0200385 node);
386 dump_stack();
Mike Travis11369f352008-07-08 14:35:21 -0700387 return (const cpumask_t *)&cpu_online_map;
Mike Travis9f248bd2008-05-12 21:21:12 +0200388 }
Mike Travis6a2f47c2008-06-27 10:10:13 -0700389 if (node >= nr_node_ids) {
390 printk(KERN_WARNING
Rusty Russell393d68f2008-12-26 22:23:38 +1030391 "cpumask_of_node(%d): node > nr_node_ids(%d)\n",
Mike Travis6a2f47c2008-06-27 10:10:13 -0700392 node, nr_node_ids);
393 dump_stack();
Mike Travis11369f352008-07-08 14:35:21 -0700394 return &cpu_mask_none;
Mike Travis6a2f47c2008-06-27 10:10:13 -0700395 }
Mike Travis11369f352008-07-08 14:35:21 -0700396 return &node_to_cpumask_map[node];
Mike Travis9f248bd2008-05-12 21:21:12 +0200397}
Rusty Russell393d68f2008-12-26 22:23:38 +1030398EXPORT_SYMBOL(cpumask_of_node);
Mike Travis9f248bd2008-05-12 21:21:12 +0200399
400/*
401 * Returns a bitmask of CPUs on Node 'node'.
Mike Travis6a2f47c2008-06-27 10:10:13 -0700402 *
403 * Side note: this function creates the returned cpumask on the stack
404 * so with a high NR_CPUS count, excessive stack space is used. The
405 * node_to_cpumask_ptr function should be used whenever possible.
Mike Travis9f248bd2008-05-12 21:21:12 +0200406 */
407cpumask_t node_to_cpumask(int node)
408{
409 if (node_to_cpumask_map == NULL) {
410 printk(KERN_WARNING
411 "node_to_cpumask(%d): no node_to_cpumask_map!\n", node);
412 dump_stack();
413 return cpu_online_map;
414 }
Mike Travis6a2f47c2008-06-27 10:10:13 -0700415 if (node >= nr_node_ids) {
416 printk(KERN_WARNING
417 "node_to_cpumask(%d): node > nr_node_ids(%d)\n",
418 node, nr_node_ids);
419 dump_stack();
420 return cpu_mask_none;
421 }
Mike Travis9f248bd2008-05-12 21:21:12 +0200422 return node_to_cpumask_map[node];
423}
424EXPORT_SYMBOL(node_to_cpumask);
425
426/*
427 * --------- end of debug versions of the numa functions ---------
428 */
429
430#endif /* CONFIG_DEBUG_PER_CPU_MAPS */
431
432#endif /* X86_64_NUMA */
Bernhard Walle1ecd2762008-06-20 15:38:22 +0200433