aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/mpparse_32.c4
-rw-r--r--arch/x86/pci/numa.c12
-rw-r--r--include/asm-x86/genapic_32.h4
-rw-r--r--include/asm-x86/mach-default/mach_mpparse.h6
-rw-r--r--include/asm-x86/mach-es7000/mach_mpparse.h6
-rw-r--r--include/asm-x86/mach-generic/mach_mpparse.h4
-rw-r--r--include/asm-x86/mach-numaq/mach_mpparse.h16
-rw-r--r--include/asm-x86/mach-summit/mach_mpparse.h6
8 files changed, 18 insertions, 40 deletions
diff --git a/arch/x86/kernel/mpparse_32.c b/arch/x86/kernel/mpparse_32.c
index 621eac56955..febd69dbbee 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 a98ae0e5727..d9afbae5092 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];
17int mp_bus_id_to_local[MAX_MP_BUSSES]; 17int 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
20void 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
20int quad_local_to_mp_bus_id [NR_CPUS/4][4]; 32int 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])
22void mpc_oem_pci_bus(struct mpc_config_bus *m, 34void mpc_oem_pci_bus(struct mpc_config_bus *m,
diff --git a/include/asm-x86/genapic_32.h b/include/asm-x86/genapic_32.h
index 5a1ae0164aa..5a1b68ac3ca 100644
--- a/include/asm-x86/genapic_32.h
+++ b/include/asm-x86/genapic_32.h
@@ -48,9 +48,6 @@ struct genapic {
48 u32 (*phys_pkg_id)(u32 cpuid_apic, int index_msb); 48 u32 (*phys_pkg_id)(u32 cpuid_apic, int index_msb);
49 49
50 /* mpparse */ 50 /* mpparse */
51 void (*mpc_oem_bus_info)(struct mpc_config_bus *, char *,
52 struct mpc_config_translation *);
53
54 /* When one of the next two hooks returns 1 the genapic 51 /* When one of the next two hooks returns 1 the genapic
55 is switched to this. Essentially they are additional probe 52 is switched to this. Essentially they are additional probe
56 functions. */ 53 functions. */
@@ -103,7 +100,6 @@ struct genapic {
103 APICFUNC(apicid_to_cpu_present) \ 100 APICFUNC(apicid_to_cpu_present) \
104 APICFUNC(setup_portio_remap) \ 101 APICFUNC(setup_portio_remap) \
105 APICFUNC(check_phys_apicid_present) \ 102 APICFUNC(check_phys_apicid_present) \
106 APICFUNC(mpc_oem_bus_info) \
107 APICFUNC(mps_oem_check) \ 103 APICFUNC(mps_oem_check) \
108 APICFUNC(get_apic_id) \ 104 APICFUNC(get_apic_id) \
109 .apic_id_mask = APIC_ID_MASK, \ 105 .apic_id_mask = APIC_ID_MASK, \
diff --git a/include/asm-x86/mach-default/mach_mpparse.h b/include/asm-x86/mach-default/mach_mpparse.h
index 679393c26dc..d14108505bb 100644
--- a/include/asm-x86/mach-default/mach_mpparse.h
+++ b/include/asm-x86/mach-default/mach_mpparse.h
@@ -1,12 +1,6 @@
1#ifndef __ASM_MACH_MPPARSE_H 1#ifndef __ASM_MACH_MPPARSE_H
2#define __ASM_MACH_MPPARSE_H 2#define __ASM_MACH_MPPARSE_H
3 3
4static inline void mpc_oem_bus_info(struct mpc_config_bus *m, char *name,
5 struct mpc_config_translation *translation)
6{
7// Dprintk("Bus #%d is %s\n", m->mpc_busid, name);
8}
9
10static inline int mps_oem_check(struct mp_config_table *mpc, char *oem, 4static inline int mps_oem_check(struct mp_config_table *mpc, char *oem,
11 char *productid) 5 char *productid)
12{ 6{
diff --git a/include/asm-x86/mach-es7000/mach_mpparse.h b/include/asm-x86/mach-es7000/mach_mpparse.h
index 3afa1b01081..ef26d352362 100644
--- a/include/asm-x86/mach-es7000/mach_mpparse.h
+++ b/include/asm-x86/mach-es7000/mach_mpparse.h
@@ -3,12 +3,6 @@
3 3
4#include <linux/acpi.h> 4#include <linux/acpi.h>
5 5
6static inline void mpc_oem_bus_info(struct mpc_config_bus *m, char *name,
7 struct mpc_config_translation *translation)
8{
9 Dprintk("Bus #%d is %s\n", m->mpc_busid, name);
10}
11
12extern int parse_unisys_oem (char *oemptr); 6extern int parse_unisys_oem (char *oemptr);
13extern int find_unisys_acpi_oem_table(unsigned long *oem_addr); 7extern int find_unisys_acpi_oem_table(unsigned long *oem_addr);
14extern void setup_unisys(void); 8extern void setup_unisys(void);
diff --git a/include/asm-x86/mach-generic/mach_mpparse.h b/include/asm-x86/mach-generic/mach_mpparse.h
index 2a693715033..0d0b5ba2e9d 100644
--- a/include/asm-x86/mach-generic/mach_mpparse.h
+++ b/include/asm-x86/mach-generic/mach_mpparse.h
@@ -1,10 +1,6 @@
1#ifndef _MACH_MPPARSE_H 1#ifndef _MACH_MPPARSE_H
2#define _MACH_MPPARSE_H 1 2#define _MACH_MPPARSE_H 1
3 3
4#include <asm/genapic.h>
5
6#define mpc_oem_bus_info (genapic->mpc_oem_bus_info)
7
8int mps_oem_check(struct mp_config_table *mpc, char *oem, char *productid); 4int mps_oem_check(struct mp_config_table *mpc, char *oem, char *productid);
9int acpi_madt_oem_check(char *oem_id, char *oem_table_id); 5int acpi_madt_oem_check(char *oem_id, char *oem_table_id);
10 6
diff --git a/include/asm-x86/mach-numaq/mach_mpparse.h b/include/asm-x86/mach-numaq/mach_mpparse.h
index 4a5d8a8b01a..459b1240118 100644
--- a/include/asm-x86/mach-numaq/mach_mpparse.h
+++ b/include/asm-x86/mach-numaq/mach_mpparse.h
@@ -1,20 +1,8 @@
1#ifndef __ASM_MACH_MPPARSE_H 1#ifndef __ASM_MACH_MPPARSE_H
2#define __ASM_MACH_MPPARSE_H 2#define __ASM_MACH_MPPARSE_H
3 3
4extern int mp_bus_id_to_local[MAX_MP_BUSSES]; 4extern void mpc_oem_bus_info(struct mpc_config_bus *m, char *name,
5extern int mp_bus_id_to_node[MAX_MP_BUSSES]; 5 struct mpc_config_translation *translation);
6
7static inline void mpc_oem_bus_info(struct mpc_config_bus *m, char *name,
8 struct mpc_config_translation *translation)
9{
10 int quad = translation->trans_quad;
11 int local = translation->trans_local;
12
13 mp_bus_id_to_node[m->mpc_busid] = quad;
14 mp_bus_id_to_local[m->mpc_busid] = local;
15 printk("Bus #%d is %s (node %d)\n", m->mpc_busid, name, quad);
16}
17
18extern void mpc_oem_pci_bus(struct mpc_config_bus *m, 6extern void mpc_oem_pci_bus(struct mpc_config_bus *m,
19 struct mpc_config_translation *translation); 7 struct mpc_config_translation *translation);
20 8
diff --git a/include/asm-x86/mach-summit/mach_mpparse.h b/include/asm-x86/mach-summit/mach_mpparse.h
index e1af489a880..fdf59170133 100644
--- a/include/asm-x86/mach-summit/mach_mpparse.h
+++ b/include/asm-x86/mach-summit/mach_mpparse.h
@@ -12,12 +12,6 @@ extern void setup_summit(void);
12#define setup_summit() {} 12#define setup_summit() {}
13#endif 13#endif
14 14
15static inline void mpc_oem_bus_info(struct mpc_config_bus *m, char *name,
16 struct mpc_config_translation *translation)
17{
18 Dprintk("Bus #%d is %s\n", m->mpc_busid, name);
19}
20
21static inline int mps_oem_check(struct mp_config_table *mpc, char *oem, 15static inline int mps_oem_check(struct mp_config_table *mpc, char *oem,
22 char *productid) 16 char *productid)
23{ 17{