1 #ifndef _ASM_X86_64_TOPOLOGY_H
2 #define _ASM_X86_64_TOPOLOGY_H
4 #include <linux/config.h>
6 #ifdef CONFIG_DISCONTIGMEM
8 #include <asm/mpspec.h>
10 /* Map the K8 CPU local memory controllers to a simple 1:1 CPU:NODE topology */
13 extern unsigned long cpu_online_map;
15 #define cpu_to_node(cpu) (fake_node ? 0 : (cpu))
16 #define memblk_to_node(memblk) (fake_node ? 0 : (memblk))
17 #define parent_node(node) (node)
18 #define node_to_first_cpu(node) (fake_node ? 0 : (node))
19 #define node_to_cpu_mask(node) (fake_node ? cpu_online_map : (1UL << (node)))
20 #define node_to_memblk(node) (node)
22 static inline unsigned long pcibus_to_cpumask(int bus)
24 return mp_bus_to_cpumask[bus] & cpu_online_map;
27 #define NODE_BALANCE_RATE 30 /* CHECKME */
31 #include <asm-generic/topology.h>