]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
x86: remove mpc_oem_bus_info()
authorAlexey Starikovskiy <astarikovskiy@suse.de>
Mon, 17 Mar 2008 19:08:48 +0000 (22:08 +0300)
committerIngo Molnar <mingo@elte.hu>
Thu, 17 Apr 2008 15:41:08 +0000 (17:41 +0200)
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/mpparse_32.c
arch/x86/pci/numa.c
include/asm-x86/genapic_32.h
include/asm-x86/mach-default/mach_mpparse.h
include/asm-x86/mach-es7000/mach_mpparse.h
include/asm-x86/mach-generic/mach_mpparse.h
include/asm-x86/mach-numaq/mach_mpparse.h
include/asm-x86/mach-summit/mach_mpparse.h

index 621eac569550f1daa5c544ed8be40fd55e8223a4..febd69dbbee9e2016f434a837ac96a0eef85c11b 100644 (file)
@@ -265,7 +265,11 @@ static void __init MP_bus_info (struct mpc_config_bus *m)
        memcpy(str, m->mpc_bustype, 6);
        str[6] = 0;
 
+#ifdef CONFIG_X86_NUMAQ
        mpc_oem_bus_info(m, str, translation_table[mpc_record]);
+#else
+       Dprintk("Bus #%d is %s\n", m->mpc_busid, str);
+#endif
 
 #if MAX_MP_BUSSES < 256
        if (m->mpc_busid >= MAX_MP_BUSSES) {
index a98ae0e57272c0445fd5e06a6fa5037eb73aa06b..d9afbae5092b64e6487c4dec7c1e57c35bbc935c 100644 (file)
@@ -17,6 +17,18 @@ int mp_bus_id_to_node[MAX_MP_BUSSES];
 int mp_bus_id_to_local[MAX_MP_BUSSES];
 #define BUS2LOCAL(global) (mp_bus_id_to_local[global])
 
+void mpc_oem_bus_info(struct mpc_config_bus *m, char *name,
+       struct mpc_config_translation *translation)
+{
+       int quad = translation->trans_quad;
+       int local = translation->trans_local;
+
+       mp_bus_id_to_node[m->mpc_busid] = quad;
+       mp_bus_id_to_local[m->mpc_busid] = local;
+       printk(KERN_INFO "Bus #%d is %s (node %d)\n",
+              m->mpc_busid, name, quad);
+}
+
 int quad_local_to_mp_bus_id [NR_CPUS/4][4];
 #define QUADLOCAL2BUS(quad,local) (quad_local_to_mp_bus_id[quad][local])
 void mpc_oem_pci_bus(struct mpc_config_bus *m,
index 5a1ae0164aa09453c6c8d53f9ab348cc3ad85c53..5a1b68ac3ca9b66f48bf2cef79c04ceafc752e26 100644 (file)
@@ -48,9 +48,6 @@ struct genapic {
        u32 (*phys_pkg_id)(u32 cpuid_apic, int index_msb);
 
        /* mpparse */
-       void (*mpc_oem_bus_info)(struct mpc_config_bus *, char *, 
-                                struct mpc_config_translation *);
-
        /* When one of the next two hooks returns 1 the genapic
           is switched to this. Essentially they are additional probe 
           functions. */
@@ -103,7 +100,6 @@ struct genapic {
        APICFUNC(apicid_to_cpu_present) \
        APICFUNC(setup_portio_remap) \
        APICFUNC(check_phys_apicid_present) \
-       APICFUNC(mpc_oem_bus_info) \
        APICFUNC(mps_oem_check) \
        APICFUNC(get_apic_id) \
        .apic_id_mask = APIC_ID_MASK, \
index 679393c26dc660fa3a6625242b8b28e10f5a1079..d14108505bb8905401f61ddab7f93fd34c3ce533 100644 (file)
@@ -1,12 +1,6 @@
 #ifndef __ASM_MACH_MPPARSE_H
 #define __ASM_MACH_MPPARSE_H
 
-static inline void mpc_oem_bus_info(struct mpc_config_bus *m, char *name, 
-                               struct mpc_config_translation *translation)
-{
-//     Dprintk("Bus #%d is %s\n", m->mpc_busid, name);
-}
-
 static inline int mps_oem_check(struct mp_config_table *mpc, char *oem, 
                char *productid)
 {
index 3afa1b010818d3e050995d1b21a2f27286d02872..ef26d3523625451c38eeaded73228869cf737a2b 100644 (file)
@@ -3,12 +3,6 @@
 
 #include <linux/acpi.h>
 
-static inline void mpc_oem_bus_info(struct mpc_config_bus *m, char *name,
-                               struct mpc_config_translation *translation)
-{
-       Dprintk("Bus #%d is %s\n", m->mpc_busid, name);
-}
-
 extern int parse_unisys_oem (char *oemptr);
 extern int find_unisys_acpi_oem_table(unsigned long *oem_addr);
 extern void setup_unisys(void);
index 2a693715033458c1fd9b47046ab9273d399483cd..0d0b5ba2e9d1a87d53022ea1eaf8a462c19654f2 100644 (file)
@@ -1,10 +1,6 @@
 #ifndef _MACH_MPPARSE_H
 #define _MACH_MPPARSE_H 1
 
-#include <asm/genapic.h>
-
-#define mpc_oem_bus_info (genapic->mpc_oem_bus_info)
-
 int mps_oem_check(struct mp_config_table *mpc, char *oem, char *productid); 
 int acpi_madt_oem_check(char *oem_id, char *oem_table_id); 
 
index 4a5d8a8b01a2a2e41c505e961682f9e27349a701..459b124011872c9337ad0e6bd58b4a509ef3464a 100644 (file)
@@ -1,20 +1,8 @@
 #ifndef __ASM_MACH_MPPARSE_H
 #define __ASM_MACH_MPPARSE_H
 
-extern int mp_bus_id_to_local[MAX_MP_BUSSES];
-extern int mp_bus_id_to_node[MAX_MP_BUSSES];
-
-static inline void mpc_oem_bus_info(struct mpc_config_bus *m, char *name, 
-                               struct mpc_config_translation *translation)
-{
-       int quad = translation->trans_quad;
-       int local = translation->trans_local;
-
-       mp_bus_id_to_node[m->mpc_busid] = quad;
-       mp_bus_id_to_local[m->mpc_busid] = local;
-       printk("Bus #%d is %s (node %d)\n", m->mpc_busid, name, quad);
-}
-
+extern void mpc_oem_bus_info(struct mpc_config_bus *m, char *name,
+                            struct mpc_config_translation *translation);
 extern void mpc_oem_pci_bus(struct mpc_config_bus *m,
        struct mpc_config_translation *translation);
 
index e1af489a8809cb2aa7c8ba9a0262dd3e0a111d3b..fdf5917013399d9175253ddf587e440c2caea654 100644 (file)
@@ -12,12 +12,6 @@ extern void setup_summit(void);
 #define setup_summit() {}
 #endif
 
-static inline void mpc_oem_bus_info(struct mpc_config_bus *m, char *name, 
-                               struct mpc_config_translation *translation)
-{
-       Dprintk("Bus #%d is %s\n", m->mpc_busid, name);
-}
-
 static inline int mps_oem_check(struct mp_config_table *mpc, char *oem, 
                char *productid)
 {