commented early_printk patch because of rejects.
[linux-flexiantxendom0-3.2.10.git] / include / asm-x86_64 / topology.h
1 #ifndef _ASM_X86_64_TOPOLOGY_H
2 #define _ASM_X86_64_TOPOLOGY_H
3
4 #include <linux/config.h>
5
6 #ifdef CONFIG_DISCONTIGMEM
7
8 #include <asm/mpspec.h>
9
10 /* Map the K8 CPU local memory controllers to a simple 1:1 CPU:NODE topology */
11
12 extern int fake_node;
13 extern unsigned long cpu_online_map;
14
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)
21
22 static inline unsigned long pcibus_to_cpumask(int bus)
23 {
24         return mp_bus_to_cpumask[bus] & cpu_online_map;
25 }
26
27 #define NODE_BALANCE_RATE 30    /* CHECKME */ 
28
29 #endif
30
31 #include <asm-generic/topology.h>
32
33 #endif