diff options
author | Alexey Starikovskiy <astarikovskiy@suse.de> | 2008-03-17 15:08:42 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:41:08 -0400 |
commit | d285e338899a4ff662a17b22d3bb0e48bb1465d4 (patch) | |
tree | 14fd807235a5aaf5818c32b9875af8a76e1d14a7 | |
parent | 4655c7deca112bea86ca00f616f19c3717f687aa (diff) |
x86: remove mpc_oem_pci_bus()
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | arch/x86/kernel/mpparse_32.c | 2 | ||||
-rw-r--r-- | arch/x86/pci/numa.c | 8 | ||||
-rw-r--r-- | include/asm-x86/genapic_32.h | 3 | ||||
-rw-r--r-- | include/asm-x86/mach-default/mach_mpparse.h | 5 | ||||
-rw-r--r-- | include/asm-x86/mach-es7000/mach_mpparse.h | 5 | ||||
-rw-r--r-- | include/asm-x86/mach-generic/mach_mpparse.h | 1 | ||||
-rw-r--r-- | include/asm-x86/mach-numaq/mach_mpparse.h | 12 | ||||
-rw-r--r-- | include/asm-x86/mach-summit/mach_mpparse.h | 5 |
8 files changed, 12 insertions, 29 deletions
diff --git a/arch/x86/kernel/mpparse_32.c b/arch/x86/kernel/mpparse_32.c index 072fcc462399..621eac569550 100644 --- a/arch/x86/kernel/mpparse_32.c +++ b/arch/x86/kernel/mpparse_32.c | |||
@@ -278,7 +278,9 @@ static void __init MP_bus_info (struct mpc_config_bus *m) | |||
278 | 278 | ||
279 | set_bit(m->mpc_busid, mp_bus_not_pci); | 279 | set_bit(m->mpc_busid, mp_bus_not_pci); |
280 | if (strncmp(str, BUSTYPE_PCI, sizeof(BUSTYPE_PCI)-1) == 0) { | 280 | if (strncmp(str, BUSTYPE_PCI, sizeof(BUSTYPE_PCI)-1) == 0) { |
281 | #ifdef CONFIG_X86_NUMAQ | ||
281 | mpc_oem_pci_bus(m, translation_table[mpc_record]); | 282 | mpc_oem_pci_bus(m, translation_table[mpc_record]); |
283 | #endif | ||
282 | clear_bit(m->mpc_busid, mp_bus_not_pci); | 284 | clear_bit(m->mpc_busid, mp_bus_not_pci); |
283 | mp_bus_id_to_pci_bus[m->mpc_busid] = mp_current_pci_id; | 285 | mp_bus_id_to_pci_bus[m->mpc_busid] = mp_current_pci_id; |
284 | mp_current_pci_id++; | 286 | mp_current_pci_id++; |
diff --git a/arch/x86/pci/numa.c b/arch/x86/pci/numa.c index 79d0a98b9d03..a98ae0e57272 100644 --- a/arch/x86/pci/numa.c +++ b/arch/x86/pci/numa.c | |||
@@ -19,6 +19,14 @@ int mp_bus_id_to_local[MAX_MP_BUSSES]; | |||
19 | 19 | ||
20 | int quad_local_to_mp_bus_id [NR_CPUS/4][4]; | 20 | int quad_local_to_mp_bus_id [NR_CPUS/4][4]; |
21 | #define QUADLOCAL2BUS(quad,local) (quad_local_to_mp_bus_id[quad][local]) | 21 | #define QUADLOCAL2BUS(quad,local) (quad_local_to_mp_bus_id[quad][local]) |
22 | void mpc_oem_pci_bus(struct mpc_config_bus *m, | ||
23 | struct mpc_config_translation *translation) | ||
24 | { | ||
25 | int quad = translation->trans_quad; | ||
26 | int local = translation->trans_local; | ||
27 | |||
28 | quad_local_to_mp_bus_id[quad][local] = m->mpc_busid; | ||
29 | } | ||
22 | 30 | ||
23 | /* Where the IO area was mapped on multiquad, always 0 otherwise */ | 31 | /* Where the IO area was mapped on multiquad, always 0 otherwise */ |
24 | void *xquad_portio; | 32 | void *xquad_portio; |
diff --git a/include/asm-x86/genapic_32.h b/include/asm-x86/genapic_32.h index 5d024400ddde..5a1ae0164aa0 100644 --- a/include/asm-x86/genapic_32.h +++ b/include/asm-x86/genapic_32.h | |||
@@ -50,8 +50,6 @@ struct genapic { | |||
50 | /* mpparse */ | 50 | /* mpparse */ |
51 | void (*mpc_oem_bus_info)(struct mpc_config_bus *, char *, | 51 | void (*mpc_oem_bus_info)(struct mpc_config_bus *, char *, |
52 | struct mpc_config_translation *); | 52 | struct mpc_config_translation *); |
53 | void (*mpc_oem_pci_bus)(struct mpc_config_bus *, | ||
54 | struct mpc_config_translation *); | ||
55 | 53 | ||
56 | /* When one of the next two hooks returns 1 the genapic | 54 | /* When one of the next two hooks returns 1 the genapic |
57 | is switched to this. Essentially they are additional probe | 55 | is switched to this. Essentially they are additional probe |
@@ -106,7 +104,6 @@ struct genapic { | |||
106 | APICFUNC(setup_portio_remap) \ | 104 | APICFUNC(setup_portio_remap) \ |
107 | APICFUNC(check_phys_apicid_present) \ | 105 | APICFUNC(check_phys_apicid_present) \ |
108 | APICFUNC(mpc_oem_bus_info) \ | 106 | APICFUNC(mpc_oem_bus_info) \ |
109 | APICFUNC(mpc_oem_pci_bus) \ | ||
110 | APICFUNC(mps_oem_check) \ | 107 | APICFUNC(mps_oem_check) \ |
111 | APICFUNC(get_apic_id) \ | 108 | APICFUNC(get_apic_id) \ |
112 | .apic_id_mask = APIC_ID_MASK, \ | 109 | .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 1d3832482580..679393c26dc6 100644 --- a/include/asm-x86/mach-default/mach_mpparse.h +++ b/include/asm-x86/mach-default/mach_mpparse.h | |||
@@ -7,11 +7,6 @@ static inline void mpc_oem_bus_info(struct mpc_config_bus *m, char *name, | |||
7 | // Dprintk("Bus #%d is %s\n", m->mpc_busid, name); | 7 | // Dprintk("Bus #%d is %s\n", m->mpc_busid, name); |
8 | } | 8 | } |
9 | 9 | ||
10 | static inline void mpc_oem_pci_bus(struct mpc_config_bus *m, | ||
11 | struct mpc_config_translation *translation) | ||
12 | { | ||
13 | } | ||
14 | |||
15 | static inline int mps_oem_check(struct mp_config_table *mpc, char *oem, | 10 | static inline int mps_oem_check(struct mp_config_table *mpc, char *oem, |
16 | char *productid) | 11 | char *productid) |
17 | { | 12 | { |
diff --git a/include/asm-x86/mach-es7000/mach_mpparse.h b/include/asm-x86/mach-es7000/mach_mpparse.h index 52ee75cd0fe1..3afa1b010818 100644 --- a/include/asm-x86/mach-es7000/mach_mpparse.h +++ b/include/asm-x86/mach-es7000/mach_mpparse.h | |||
@@ -9,11 +9,6 @@ static inline void mpc_oem_bus_info(struct mpc_config_bus *m, char *name, | |||
9 | Dprintk("Bus #%d is %s\n", m->mpc_busid, name); | 9 | Dprintk("Bus #%d is %s\n", m->mpc_busid, name); |
10 | } | 10 | } |
11 | 11 | ||
12 | static inline void mpc_oem_pci_bus(struct mpc_config_bus *m, | ||
13 | struct mpc_config_translation *translation) | ||
14 | { | ||
15 | } | ||
16 | |||
17 | extern int parse_unisys_oem (char *oemptr); | 12 | extern int parse_unisys_oem (char *oemptr); |
18 | extern int find_unisys_acpi_oem_table(unsigned long *oem_addr); | 13 | extern int find_unisys_acpi_oem_table(unsigned long *oem_addr); |
19 | extern void setup_unisys(void); | 14 | extern 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 dbd9fce54f4d..2a6937150334 100644 --- a/include/asm-x86/mach-generic/mach_mpparse.h +++ b/include/asm-x86/mach-generic/mach_mpparse.h | |||
@@ -4,7 +4,6 @@ | |||
4 | #include <asm/genapic.h> | 4 | #include <asm/genapic.h> |
5 | 5 | ||
6 | #define mpc_oem_bus_info (genapic->mpc_oem_bus_info) | 6 | #define mpc_oem_bus_info (genapic->mpc_oem_bus_info) |
7 | #define mpc_oem_pci_bus (genapic->mpc_oem_pci_bus) | ||
8 | 7 | ||
9 | int mps_oem_check(struct mp_config_table *mpc, char *oem, char *productid); | 8 | int mps_oem_check(struct mp_config_table *mpc, char *oem, char *productid); |
10 | int acpi_madt_oem_check(char *oem_id, char *oem_table_id); | 9 | int acpi_madt_oem_check(char *oem_id, char *oem_table_id); |
diff --git a/include/asm-x86/mach-numaq/mach_mpparse.h b/include/asm-x86/mach-numaq/mach_mpparse.h index 254993ae04c7..4a5d8a8b01a2 100644 --- a/include/asm-x86/mach-numaq/mach_mpparse.h +++ b/include/asm-x86/mach-numaq/mach_mpparse.h | |||
@@ -15,16 +15,8 @@ static inline void mpc_oem_bus_info(struct mpc_config_bus *m, char *name, | |||
15 | printk("Bus #%d is %s (node %d)\n", m->mpc_busid, name, quad); | 15 | printk("Bus #%d is %s (node %d)\n", m->mpc_busid, name, quad); |
16 | } | 16 | } |
17 | 17 | ||
18 | extern int quad_local_to_mp_bus_id[NR_CPUS/4][4]; | 18 | extern void mpc_oem_pci_bus(struct mpc_config_bus *m, |
19 | 19 | struct mpc_config_translation *translation); | |
20 | static inline void mpc_oem_pci_bus(struct mpc_config_bus *m, | ||
21 | struct mpc_config_translation *translation) | ||
22 | { | ||
23 | int quad = translation->trans_quad; | ||
24 | int local = translation->trans_local; | ||
25 | |||
26 | quad_local_to_mp_bus_id[quad][local] = m->mpc_busid; | ||
27 | } | ||
28 | 20 | ||
29 | /* Hook from generic ACPI tables.c */ | 21 | /* Hook from generic ACPI tables.c */ |
30 | static inline void acpi_madt_oem_check(char *oem_id, char *oem_table_id) | 22 | static inline void acpi_madt_oem_check(char *oem_id, char *oem_table_id) |
diff --git a/include/asm-x86/mach-summit/mach_mpparse.h b/include/asm-x86/mach-summit/mach_mpparse.h index c2520539d934..e1af489a8809 100644 --- a/include/asm-x86/mach-summit/mach_mpparse.h +++ b/include/asm-x86/mach-summit/mach_mpparse.h | |||
@@ -18,11 +18,6 @@ static inline void mpc_oem_bus_info(struct mpc_config_bus *m, char *name, | |||
18 | Dprintk("Bus #%d is %s\n", m->mpc_busid, name); | 18 | Dprintk("Bus #%d is %s\n", m->mpc_busid, name); |
19 | } | 19 | } |
20 | 20 | ||
21 | static inline void mpc_oem_pci_bus(struct mpc_config_bus *m, | ||
22 | struct mpc_config_translation *translation) | ||
23 | { | ||
24 | } | ||
25 | |||
26 | static inline int mps_oem_check(struct mp_config_table *mpc, char *oem, | 21 | static inline int mps_oem_check(struct mp_config_table *mpc, char *oem, |
27 | char *productid) | 22 | char *productid) |
28 | { | 23 | { |