1 #ifndef _ASM_X86_NUMA_H
2 #define _ASM_X86_NUMA_H
4 #include <asm/apicdef.h>
8 * __apicid_to_node[] stores the raw mapping between physical apicid and
9 * node and is used to initialize cpu_to_node mapping.
11 * The mapping may be overridden by apic->numa_cpu_node() on 32bit and thus
12 * should be accessed by the accessors - set_apicid_to_node() and
15 extern s16 __apicid_to_node[MAX_LOCAL_APIC];
17 static inline void set_apicid_to_node(int apicid, s16 node)
19 __apicid_to_node[apicid] = node;
21 #else /* CONFIG_NUMA */
22 static inline void set_apicid_to_node(int apicid, s16 node)
25 #endif /* CONFIG_NUMA */
33 #endif /* _ASM_X86_NUMA_H */