]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
x86: make struct mpc_config_translation NUMAQ-only
authorAlexey Starikovskiy <astarikovskiy@suse.de>
Mon, 17 Mar 2008 19:08:55 +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
include/asm-x86/genapic_32.h
include/asm-x86/mach-numaq/mach_apic.h
include/asm-x86/mpspec_def.h

index febd69dbbee9e2016f434a837ac96a0eef85c11b..15dd87110298371e2c7e033776874fc0f502ccfd 100644 (file)
@@ -98,6 +98,7 @@ static int __init mpf_checksum(unsigned char *mp, int len)
        return sum & 0xFF;
 }
 
+#ifdef CONFIG_X86_NUMAQ
 /*
  * Have to match translation table entries to main table entries by counter
  * hence the mpc_record variable .... can't see a less disgusting way of
@@ -106,6 +107,7 @@ static int __init mpf_checksum(unsigned char *mp, int len)
 
 static int mpc_record; 
 static struct mpc_config_translation *translation_table[MAX_MPC_ENTRY] __cpuinitdata;
+#endif
 
 static void __cpuinit MP_processor_info (struct mpc_config_processor *m)
 {
@@ -475,7 +477,9 @@ static int __init smp_read_mpc(struct mp_config_table *mpc)
        /*
         *      Now process the configuration blocks.
         */
+#ifdef CONFIG_X86_NUMAQ
        mpc_record = 0;
+#endif
        while (count < mpc->mpc_length) {
                switch(*mpt) {
                        case MP_PROCESSOR:
@@ -532,7 +536,9 @@ static int __init smp_read_mpc(struct mp_config_table *mpc)
                                break;
                        }
                }
+#ifdef CONFIG_X86_NUMAQ
                ++mpc_record;
+#endif
        }
        setup_apic_routing();
        if (!num_processors)
index 5a1b68ac3ca9b66f48bf2cef79c04ceafc752e26..b501ae7809ba2e63087d8a2e43cd0c03b05014ef 100644 (file)
@@ -14,7 +14,6 @@
  * Copyright 2003 Andi Kleen, SuSE Labs.
  */
 
-struct mpc_config_translation;
 struct mpc_config_bus;
 struct mp_config_table;
 struct mpc_config_processor;
index 3b637fac890b8da769ab398cbe02d6dfe1a54d55..75a56e5afbe7093db489441b3135c27946ea3234 100644 (file)
@@ -95,6 +95,16 @@ static inline physid_mask_t apicid_to_cpu_present(int logical_apicid)
        return physid_mask_of_physid(cpu + 4*node);
 }
 
+struct mpc_config_translation {
+       unsigned char mpc_type;
+       unsigned char trans_len;
+       unsigned char trans_type;
+       unsigned char trans_quad;
+       unsigned char trans_global;
+       unsigned char trans_local;
+       unsigned short trans_reserved;
+};
+
 static inline int mpc_apic_id(struct mpc_config_processor *m, 
                        struct mpc_config_translation *translation_record)
 {
index 3504617fe648267e5967e57ff47b5d5e33704b1e..1f35691b4f7cc05482056af6bb3808f9978809ed 100644 (file)
@@ -166,17 +166,6 @@ struct mp_config_oemtable
        char  mpc_oem[8];
 };
 
-struct mpc_config_translation
-{
-       unsigned char mpc_type;
-       unsigned char trans_len;
-       unsigned char trans_type;
-       unsigned char trans_quad;
-       unsigned char trans_global;
-       unsigned char trans_local;
-       unsigned short trans_reserved;
-};
-
 /*
  *     Default configurations
  *