]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
x86, apic: clean up ->apicid_to_cpu_present()
authorIngo Molnar <mingo@elte.hu>
Wed, 28 Jan 2009 05:50:47 +0000 (06:50 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 28 Jan 2009 22:20:24 +0000 (23:20 +0100)
- separate the namespace

 - remove macros

Signed-off-by: Ingo Molnar <mingo@elte.hu>
13 files changed:
arch/x86/include/asm/bigsmp/apic.h
arch/x86/include/asm/es7000/apic.h
arch/x86/include/asm/mach-default/mach_apic.h
arch/x86/include/asm/mach-generic/mach_apic.h
arch/x86/include/asm/numaq/apic.h
arch/x86/include/asm/summit/apic.h
arch/x86/kernel/io_apic.c
arch/x86/kernel/visws_quirks.c
arch/x86/mach-generic/bigsmp.c
arch/x86/mach-generic/default.c
arch/x86/mach-generic/es7000.c
arch/x86/mach-generic/numaq.c
arch/x86/mach-generic/summit.c

index eea5e9788dddb98dde810b7d6945771d6d78a5b1..080457450b22129fec4f242491f5c7625bd99dc4 100644 (file)
@@ -75,7 +75,7 @@ static inline int bigsmp_cpu_present_to_apicid(int mps_cpu)
        return BAD_APICID;
 }
 
-static inline physid_mask_t apicid_to_cpu_present(int phys_apicid)
+static inline physid_mask_t bigsmp_apicid_to_cpu_present(int phys_apicid)
 {
        return physid_mask_of_physid(phys_apicid);
 }
index 7cdde3d9c5f6aac21dd4fd91ed16d202bbdf7d81..a09e1133ced9a6b1e5a1afff6fd291ffc82b07e9 100644 (file)
@@ -98,7 +98,7 @@ static inline int es7000_cpu_present_to_apicid(int mps_cpu)
                return BAD_APICID;
 }
 
-static inline physid_mask_t apicid_to_cpu_present(int phys_apicid)
+static inline physid_mask_t es7000_apicid_to_cpu_present(int phys_apicid)
 {
        static int id = 0;
        physid_mask_t mask;
index 15d5627a9d6ffdce9fdfd46570a5f8843dd5854f..22683e5b82be1e8c4dcbf50335e85d4a4158b2cc 100644 (file)
@@ -127,7 +127,7 @@ static inline int default_cpu_present_to_apicid(int mps_cpu)
 extern int default_cpu_present_to_apicid(int mps_cpu);
 #endif
 
-static inline physid_mask_t apicid_to_cpu_present(int phys_apicid)
+static inline physid_mask_t default_apicid_to_cpu_present(int phys_apicid)
 {
        return physid_mask_of_physid(phys_apicid);
 }
index 332fe93ab41ac0205c20885a53253b9a460052c1..997618f2eb5c357b125cbadd3b00527bb7298f71 100644 (file)
@@ -3,7 +3,6 @@
 
 #include <asm/genapic.h>
 
-#define apicid_to_cpu_present (apic->apicid_to_cpu_present)
 #define setup_portio_remap (apic->setup_portio_remap)
 #define check_phys_apicid_present (apic->check_phys_apicid_present)
 #define cpu_mask_to_apicid (apic->cpu_mask_to_apicid)
index f482b0634476145b6b573020843072fe44207761..8ac000f9928565f476573b918fe81940f32c0ee5 100644 (file)
@@ -82,7 +82,7 @@ static inline int numaq_apicid_to_node(int logical_apicid)
        return logical_apicid >> 4;
 }
 
-static inline physid_mask_t apicid_to_cpu_present(int logical_apicid)
+static inline physid_mask_t numaq_apicid_to_cpu_present(int logical_apicid)
 {
        int node = numaq_apicid_to_node(logical_apicid);
        int cpu = __ffs(logical_apicid & 0xf);
index fc127369188049e0a1ca51a976161b33b328e2a1..79c1a45f886b8351451a3d6c99943abb5d4294ff 100644 (file)
@@ -105,13 +105,13 @@ static inline int summit_cpu_present_to_apicid(int mps_cpu)
 }
 
 static inline physid_mask_t
- summit_ioapic_phys_id_map(physid_mask_t phys_id_map)
+summit_ioapic_phys_id_map(physid_mask_t phys_id_map)
 {
        /* For clustered we don't have a good way to do this yet - hack */
        return physids_promote(0x0F);
 }
 
-static inline physid_mask_t apicid_to_cpu_present(int apicid)
+static inline physid_mask_t summit_apicid_to_cpu_present(int apicid)
 {
        return physid_mask_of_physid(0);
 }
index 282ea112f3cfc2c52cb0b966cf6be9a4d9e1c390..3d85d3d810b2e7b5e37cb1474c0a0074828670a9 100644 (file)
@@ -2155,7 +2155,7 @@ static void __init setup_ioapic_ids_from_mpc(void)
                        mp_ioapics[apic_id].apicid = i;
                } else {
                        physid_mask_t tmp;
-                       tmp = apicid_to_cpu_present(mp_ioapics[apic_id].apicid);
+                       tmp = apic->apicid_to_cpu_present(mp_ioapics[apic_id].apicid);
                        apic_printk(APIC_VERBOSE, "Setting %d in the "
                                        "phys_id_present_map\n",
                                        mp_ioapics[apic_id].apicid);
@@ -3899,7 +3899,7 @@ int __init io_apic_get_unique_id(int ioapic, int apic_id)
                apic_id = i;
        }
 
-       tmp = apicid_to_cpu_present(apic_id);
+       tmp = apic->apicid_to_cpu_present(apic_id);
        physids_or(apic_id_map, apic_id_map, tmp);
 
        if (reg_00.bits.ID != apic_id) {
index d801d06af068ff1a3a752380827348f3f57e79e2..2ed5bdf15c9f0feaafe9254a1951d2bb56f8aa7e 100644 (file)
@@ -200,7 +200,7 @@ static void __init MP_processor_info(struct mpc_cpu *m)
                return;
        }
 
-       apic_cpus = apicid_to_cpu_present(m->apicid);
+       apic_cpus = apic->apicid_to_cpu_present(m->apicid);
        physids_or(phys_cpu_present_map, phys_cpu_present_map, apic_cpus);
        /*
         * Validate version
index 1eaf18c801d865e9a0744e75a12116a1597ffc75..6139652307449f64b7354cccff44e4aa9df01230 100644 (file)
@@ -83,7 +83,7 @@ struct genapic apic_bigsmp = {
        .apicid_to_node                 = bigsmp_apicid_to_node,
        .cpu_to_logical_apicid          = bigsmp_cpu_to_logical_apicid,
        .cpu_present_to_apicid          = bigsmp_cpu_present_to_apicid,
-       .apicid_to_cpu_present          = apicid_to_cpu_present,
+       .apicid_to_cpu_present          = bigsmp_apicid_to_cpu_present,
        .setup_portio_remap             = setup_portio_remap,
        .check_phys_apicid_present      = check_phys_apicid_present,
        .enable_apic_mode               = enable_apic_mode,
index 2903657f4209c10120ad4b2bdd476c8b50e31bc6..8fc704a3db7cc6f6bcd020ef3666c5a80cc7e4f4 100644 (file)
@@ -64,7 +64,7 @@ struct genapic apic_default = {
        .apicid_to_node                 = default_apicid_to_node,
        .cpu_to_logical_apicid          = default_cpu_to_logical_apicid,
        .cpu_present_to_apicid          = default_cpu_present_to_apicid,
-       .apicid_to_cpu_present          = apicid_to_cpu_present,
+       .apicid_to_cpu_present          = default_apicid_to_cpu_present,
        .setup_portio_remap             = setup_portio_remap,
        .check_phys_apicid_present      = check_phys_apicid_present,
        .enable_apic_mode               = enable_apic_mode,
index 5a3a8ab4f8a002ce32d3ca9fd5aee5488c365a44..1e0e1627455715fee7438a6fe926c52f18fcf78c 100644 (file)
@@ -125,7 +125,7 @@ struct genapic apic_es7000 = {
        .apicid_to_node                 = es7000_apicid_to_node,
        .cpu_to_logical_apicid          = es7000_cpu_to_logical_apicid,
        .cpu_present_to_apicid          = es7000_cpu_present_to_apicid,
-       .apicid_to_cpu_present          = apicid_to_cpu_present,
+       .apicid_to_cpu_present          = es7000_apicid_to_cpu_present,
        .setup_portio_remap             = setup_portio_remap,
        .check_phys_apicid_present      = check_phys_apicid_present,
        .enable_apic_mode               = enable_apic_mode,
index d928cae211cc9f4a1e63f98a12e1054183aa1935..839b86b765a12444d4d11ee1d60e25631f541f16 100644 (file)
@@ -70,7 +70,7 @@ struct genapic apic_numaq = {
        .apicid_to_node                 = numaq_apicid_to_node,
        .cpu_to_logical_apicid          = numaq_cpu_to_logical_apicid,
        .cpu_present_to_apicid          = numaq_cpu_present_to_apicid,
-       .apicid_to_cpu_present          = apicid_to_cpu_present,
+       .apicid_to_cpu_present          = numaq_apicid_to_cpu_present,
        .setup_portio_remap             = setup_portio_remap,
        .check_phys_apicid_present      = check_phys_apicid_present,
        .enable_apic_mode               = enable_apic_mode,
index e6bb34ee580b92e691723b42a8360cee5d3a65c7..b6e37607a523d54b62dee7973202c8f4d3ee9885 100644 (file)
@@ -63,7 +63,7 @@ struct genapic apic_summit = {
        .apicid_to_node                 = summit_apicid_to_node,
        .cpu_to_logical_apicid          = summit_cpu_to_logical_apicid,
        .cpu_present_to_apicid          = summit_cpu_present_to_apicid,
-       .apicid_to_cpu_present          = apicid_to_cpu_present,
+       .apicid_to_cpu_present          = summit_apicid_to_cpu_present,
        .setup_portio_remap             = setup_portio_remap,
        .check_phys_apicid_present      = check_phys_apicid_present,
        .enable_apic_mode               = enable_apic_mode,