diff options
author | Alexey Starikovskiy <astarikovskiy@suse.de> | 2008-03-17 15:08:48 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:41:08 -0400 |
commit | 0ec153af4dec8944e6da558093914a3bce4c76f9 (patch) | |
tree | 374a5287217a709e01ff1dd2697f844d955bb2da /arch/x86 | |
parent | d285e338899a4ff662a17b22d3bb0e48bb1465d4 (diff) |
x86: remove mpc_oem_bus_info()
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kernel/mpparse_32.c | 4 | ||||
-rw-r--r-- | arch/x86/pci/numa.c | 12 |
2 files changed, 16 insertions, 0 deletions
diff --git a/arch/x86/kernel/mpparse_32.c b/arch/x86/kernel/mpparse_32.c index 621eac569550..febd69dbbee9 100644 --- a/arch/x86/kernel/mpparse_32.c +++ b/arch/x86/kernel/mpparse_32.c | |||
@@ -265,7 +265,11 @@ static void __init MP_bus_info (struct mpc_config_bus *m) | |||
265 | memcpy(str, m->mpc_bustype, 6); | 265 | memcpy(str, m->mpc_bustype, 6); |
266 | str[6] = 0; | 266 | str[6] = 0; |
267 | 267 | ||
268 | #ifdef CONFIG_X86_NUMAQ | ||
268 | mpc_oem_bus_info(m, str, translation_table[mpc_record]); | 269 | mpc_oem_bus_info(m, str, translation_table[mpc_record]); |
270 | #else | ||
271 | Dprintk("Bus #%d is %s\n", m->mpc_busid, str); | ||
272 | #endif | ||
269 | 273 | ||
270 | #if MAX_MP_BUSSES < 256 | 274 | #if MAX_MP_BUSSES < 256 |
271 | if (m->mpc_busid >= MAX_MP_BUSSES) { | 275 | if (m->mpc_busid >= MAX_MP_BUSSES) { |
diff --git a/arch/x86/pci/numa.c b/arch/x86/pci/numa.c index a98ae0e57272..d9afbae5092b 100644 --- a/arch/x86/pci/numa.c +++ b/arch/x86/pci/numa.c | |||
@@ -17,6 +17,18 @@ int mp_bus_id_to_node[MAX_MP_BUSSES]; | |||
17 | int mp_bus_id_to_local[MAX_MP_BUSSES]; | 17 | int mp_bus_id_to_local[MAX_MP_BUSSES]; |
18 | #define BUS2LOCAL(global) (mp_bus_id_to_local[global]) | 18 | #define BUS2LOCAL(global) (mp_bus_id_to_local[global]) |
19 | 19 | ||
20 | void mpc_oem_bus_info(struct mpc_config_bus *m, char *name, | ||
21 | struct mpc_config_translation *translation) | ||
22 | { | ||
23 | int quad = translation->trans_quad; | ||
24 | int local = translation->trans_local; | ||
25 | |||
26 | mp_bus_id_to_node[m->mpc_busid] = quad; | ||
27 | mp_bus_id_to_local[m->mpc_busid] = local; | ||
28 | printk(KERN_INFO "Bus #%d is %s (node %d)\n", | ||
29 | m->mpc_busid, name, quad); | ||
30 | } | ||
31 | |||
20 | int quad_local_to_mp_bus_id [NR_CPUS/4][4]; | 32 | int quad_local_to_mp_bus_id [NR_CPUS/4][4]; |
21 | #define QUADLOCAL2BUS(quad,local) (quad_local_to_mp_bus_id[quad][local]) | 33 | #define QUADLOCAL2BUS(quad,local) (quad_local_to_mp_bus_id[quad][local]) |
22 | void mpc_oem_pci_bus(struct mpc_config_bus *m, | 34 | void mpc_oem_pci_bus(struct mpc_config_bus *m, |