x86, apic: clean up ->init_apic_ldr()
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:21 +0000 (23:20 +0100)
- separate the namespace

 - remove macros

Signed-off-by: Ingo Molnar <mingo@elte.hu>
12 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/apic.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 916451252b3a9a1ac3c67b1f82eb446eb5b97520..819413082999c91b494cbd3ccbb4557f0882c10a 100644 (file)
@@ -46,7 +46,7 @@ static inline unsigned long calculate_ldr(int cpu)
  * an APIC.  See e.g. "AP-388 82489DX User's Manual" (Intel
  * document number 292116).  So here it goes...
  */
-static inline void init_apic_ldr(void)
+static inline void bigsmp_init_apic_ldr(void)
 {
        unsigned long val;
        int cpu = smp_processor_id();
index 847008a77029cd4df4911fe6ed737466335c8661..06f5757bf7af6582d11cc816b735d9148c79f2fc 100644 (file)
@@ -52,7 +52,7 @@ static inline unsigned long calculate_ldr(int cpu)
  * an APIC.  See e.g. "AP-388 82489DX User's Manual" (Intel
  * document number 292116).  So here it goes...
  */
-static inline void init_apic_ldr_cluster(void)
+static inline void es7000_init_apic_ldr_cluster(void)
 {
        unsigned long val;
        int cpu = smp_processor_id();
@@ -62,7 +62,7 @@ static inline void init_apic_ldr_cluster(void)
        apic_write(APIC_LDR, val);
 }
 
-static inline void init_apic_ldr(void)
+static inline void es7000_init_apic_ldr(void)
 {
        unsigned long val;
        int cpu = smp_processor_id();
index 9c56542644ca44acf62156e58e11b2dccaa62148..23e0a2da3a960b2f12a45e899d989e6e3f3d2c65 100644 (file)
@@ -19,7 +19,6 @@ static inline const struct cpumask *default_target_cpus(void)
 
 #ifdef CONFIG_X86_64
 #include <asm/genapic.h>
-#define init_apic_ldr (apic->init_apic_ldr)
 #define cpu_mask_to_apicid (apic->cpu_mask_to_apicid)
 #define cpu_mask_to_apicid_and (apic->cpu_mask_to_apicid_and)
 #define phys_pkg_id    (apic->phys_pkg_id)
@@ -36,7 +35,7 @@ extern void setup_apic_routing(void);
  * an APIC.  See e.g. "AP-388 82489DX User's Manual" (Intel
  * document number 292116).  So here it goes...
  */
-static inline void init_apic_ldr(void)
+static inline void default_init_apic_ldr(void)
 {
        unsigned long val;
 
index e94881af9625ae5ae8acace0ff65c958ea137fd0..8e51f41639441f2a3182eea6151f2f90d74d1fab 100644 (file)
@@ -3,7 +3,6 @@
 
 #include <asm/genapic.h>
 
-#define init_apic_ldr (apic->init_apic_ldr)
 #define ioapic_phys_id_map (apic->ioapic_phys_id_map)
 #define setup_apic_routing (apic->setup_apic_routing)
 #define multi_timer_check (apic->multi_timer_check)
index defee3496ad6aac7998251ce7ccf3a9ba8b73364..802297489a3418a55963cf60531694ca00777e91 100644 (file)
@@ -28,7 +28,7 @@ static inline int numaq_apic_id_registered(void)
        return 1;
 }
 
-static inline void init_apic_ldr(void)
+static inline void numaq_init_apic_ldr(void)
 {
        /* Already done in NUMA-Q firmware */
 }
index 51df002ecf4c6dedb273212dc7a4e9c71489287b..9108c89fe881c53a395d22b3de04ac30fd9d5f96 100644 (file)
@@ -37,7 +37,7 @@ static inline unsigned long summit_check_apicid_present(int bit)
 
 extern u8 cpu_2_logical_apicid[];
 
-static inline void init_apic_ldr(void)
+static inline void summit_init_apic_ldr(void)
 {
        unsigned long val, id;
        int count = 0;
index 3853ed76c88817b7bd0fd120b46ca66921d27dec..b7077936ac099a0606137084df9324e34da6f961 100644 (file)
@@ -1179,7 +1179,7 @@ void __cpuinit setup_local_APIC(void)
         * an APIC.  See e.g. "AP-388 82489DX User's Manual" (Intel
         * document number 292116).  So here it goes...
         */
-       init_apic_ldr();
+       apic->init_apic_ldr();
 
        /*
         * Set Task Priority to 'accept all'. We never change this
index 391cc99cd21c63a30968133f9bd2b2100263124b..7b7fc471a3f7f961255a6e5f7a39ce5880f48d16 100644 (file)
@@ -75,7 +75,7 @@ struct genapic apic_bigsmp = {
        .check_apicid_present           = bigsmp_check_apicid_present,
 
        .vector_allocation_domain       = bigsmp_vector_allocation_domain,
-       .init_apic_ldr                  = init_apic_ldr,
+       .init_apic_ldr                  = bigsmp_init_apic_ldr,
 
        .ioapic_phys_id_map             = ioapic_phys_id_map,
        .setup_apic_routing             = setup_apic_routing,
index 6adc3c69a3c9522b3946918be2681a4922ddac3c..633e8482af25c8d18fa5077e00e30e4b812baea3 100644 (file)
@@ -56,7 +56,7 @@ struct genapic apic_default = {
        .check_apicid_present           = default_check_apicid_present,
 
        .vector_allocation_domain       = default_vector_allocation_domain,
-       .init_apic_ldr                  = init_apic_ldr,
+       .init_apic_ldr                  = default_init_apic_ldr,
 
        .ioapic_phys_id_map             = ioapic_phys_id_map,
        .setup_apic_routing             = setup_apic_routing,
index bc1f21cd6a4dcb1c2eb3dcbbcfa43054d27f3cf7..b70833e3597671097ec06cca779de504f0afecd6 100644 (file)
@@ -24,7 +24,7 @@ void __init es7000_update_genapic_to_cluster(void)
        apic->irq_delivery_mode = INT_DELIVERY_MODE_CLUSTER;
        apic->irq_dest_mode = INT_DEST_MODE_CLUSTER;
 
-       apic->init_apic_ldr = init_apic_ldr_cluster;
+       apic->init_apic_ldr = es7000_init_apic_ldr_cluster;
 
        apic->cpu_mask_to_apicid = cpu_mask_to_apicid_cluster;
 }
@@ -117,7 +117,7 @@ struct genapic apic_es7000 = {
        .check_apicid_present           = es7000_check_apicid_present,
 
        .vector_allocation_domain       = es7000_vector_allocation_domain,
-       .init_apic_ldr                  = init_apic_ldr,
+       .init_apic_ldr                  = es7000_init_apic_ldr,
 
        .ioapic_phys_id_map             = ioapic_phys_id_map,
        .setup_apic_routing             = setup_apic_routing,
index 712882f48c4ebb5b0b5414de48576d040e826e79..a06fda579281e9441bc0d47036905399896eeae4 100644 (file)
@@ -62,7 +62,7 @@ struct genapic apic_numaq = {
        .check_apicid_present           = numaq_check_apicid_present,
 
        .vector_allocation_domain       = numaq_vector_allocation_domain,
-       .init_apic_ldr                  = init_apic_ldr,
+       .init_apic_ldr                  = numaq_init_apic_ldr,
 
        .ioapic_phys_id_map             = ioapic_phys_id_map,
        .setup_apic_routing             = setup_apic_routing,
index 1834887b94a3071d55d08c7d6fa55c35a14b54b9..36c552fa4275d6189117fc75841f2ad792fb66a3 100644 (file)
@@ -55,7 +55,7 @@ struct genapic apic_summit = {
        .check_apicid_present           = summit_check_apicid_present,
 
        .vector_allocation_domain       = summit_vector_allocation_domain,
-       .init_apic_ldr                  = init_apic_ldr,
+       .init_apic_ldr                  = summit_init_apic_ldr,
 
        .ioapic_phys_id_map             = ioapic_phys_id_map,
        .setup_apic_routing             = setup_apic_routing,