x86, apic: rename genapic::apic_destination_logical to genapic::dest_logical
authorIngo Molnar <mingo@elte.hu>
Wed, 28 Jan 2009 04:29:25 +0000 (05:29 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 28 Jan 2009 22:20:19 +0000 (23:20 +0100)
This field name was unreasonably long - shorten it.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
13 files changed:
arch/x86/include/asm/genapic.h
arch/x86/kernel/genapic_flat_64.c
arch/x86/kernel/genx2apic_cluster.c
arch/x86/kernel/genx2apic_phys.c
arch/x86/kernel/genx2apic_uv_x.c
arch/x86/kernel/io_apic.c
arch/x86/kernel/ipi.c
arch/x86/kernel/smpboot.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 7aee4a4c5244cfb3b2246ab6087e0b21a3751fdc..f9d1ec018fd3c3a61dadfd0391eaad03955b751e 100644 (file)
@@ -30,7 +30,7 @@ struct genapic {
 
        int disable_esr;
 
-       int apic_destination_logical;
+       int dest_logical;
        unsigned long (*check_apicid_used)(physid_mask_t bitmap, int apicid);
        unsigned long (*check_apicid_present)(int apicid);
 
index fd242c6b3ba1f9d0dd6179e39ec05b88fc47e459..d22cbdaee2087402d56c72c90b5b09ca73fb5dd2 100644 (file)
@@ -74,7 +74,7 @@ static inline void _flat_send_IPI_mask(unsigned long mask, int vector)
        unsigned long flags;
 
        local_irq_save(flags);
-       __send_IPI_dest_field(mask, vector, apic->apic_destination_logical);
+       __send_IPI_dest_field(mask, vector, apic->dest_logical);
        local_irq_restore(flags);
 }
 
@@ -114,7 +114,7 @@ static void flat_send_IPI_allbutself(int vector)
                        _flat_send_IPI_mask(mask, vector);
                }
        } else if (num_online_cpus() > 1) {
-               __send_IPI_shortcut(APIC_DEST_ALLBUT, vector, apic->apic_destination_logical);
+               __send_IPI_shortcut(APIC_DEST_ALLBUT, vector, apic->dest_logical);
        }
 }
 
@@ -123,7 +123,7 @@ static void flat_send_IPI_all(int vector)
        if (vector == NMI_VECTOR)
                flat_send_IPI_mask(cpu_online_mask, vector);
        else
-               __send_IPI_shortcut(APIC_DEST_ALLINC, vector, apic->apic_destination_logical);
+               __send_IPI_shortcut(APIC_DEST_ALLINC, vector, apic->dest_logical);
 }
 
 static unsigned int get_apic_id(unsigned long x)
@@ -185,7 +185,7 @@ struct genapic apic_flat =  {
 
        .target_cpus                    = flat_target_cpus,
        .disable_esr                    = 0,
-       .apic_destination_logical       = APIC_DEST_LOGICAL,
+       .dest_logical                   = APIC_DEST_LOGICAL,
        .check_apicid_used              = NULL,
        .check_apicid_present           = NULL,
 
@@ -331,7 +331,7 @@ struct genapic apic_physflat =  {
 
        .target_cpus                    = physflat_target_cpus,
        .disable_esr                    = 0,
-       .apic_destination_logical       = 0,
+       .dest_logical                   = 0,
        .check_apicid_used              = NULL,
        .check_apicid_present           = NULL,
 
index a76e75ecc20680f618cfbdf38fc4a842b2f6dcbf..b91a48eae52e44454ea25524e583ee0d4259ad2d 100644 (file)
@@ -64,7 +64,7 @@ static void x2apic_send_IPI_mask(const struct cpumask *mask, int vector)
        for_each_cpu(query_cpu, mask)
                __x2apic_send_IPI_dest(
                        per_cpu(x86_cpu_to_logical_apicid, query_cpu),
-                       vector, apic->apic_destination_logical);
+                       vector, apic->dest_logical);
        local_irq_restore(flags);
 }
 
@@ -80,7 +80,7 @@ static void x2apic_send_IPI_mask_allbutself(const struct cpumask *mask,
                if (query_cpu != this_cpu)
                        __x2apic_send_IPI_dest(
                                per_cpu(x86_cpu_to_logical_apicid, query_cpu),
-                               vector, apic->apic_destination_logical);
+                               vector, apic->dest_logical);
        local_irq_restore(flags);
 }
 
@@ -95,7 +95,7 @@ static void x2apic_send_IPI_allbutself(int vector)
                if (query_cpu != this_cpu)
                        __x2apic_send_IPI_dest(
                                per_cpu(x86_cpu_to_logical_apicid, query_cpu),
-                               vector, apic->apic_destination_logical);
+                               vector, apic->dest_logical);
        local_irq_restore(flags);
 }
 
@@ -187,7 +187,7 @@ struct genapic apic_x2apic_cluster = {
 
        .target_cpus                    = x2apic_target_cpus,
        .disable_esr                    = 0,
-       .apic_destination_logical       = APIC_DEST_LOGICAL,
+       .dest_logical                   = APIC_DEST_LOGICAL,
        .check_apicid_used              = NULL,
        .check_apicid_present           = NULL,
 
index 9b6d68deb1472a24c373b8cb8e0a7749332acbc6..f070e86af0f4c6f2cc5f73991c91a501ec51e9ef 100644 (file)
@@ -183,7 +183,7 @@ struct genapic apic_x2apic_phys = {
 
        .target_cpus                    = x2apic_target_cpus,
        .disable_esr                    = 0,
-       .apic_destination_logical       = 0,
+       .dest_logical                   = 0,
        .check_apicid_used              = NULL,
        .check_apicid_present           = NULL,
 
index 0a756800c11a57c8003ea64cee6648d1f082cd9a..c8a89158679967b8a5bd24e785ebcd0cda59aafa 100644 (file)
@@ -248,7 +248,7 @@ struct genapic apic_x2apic_uv_x = {
 
        .target_cpus                    = uv_target_cpus,
        .disable_esr                    = 0,
-       .apic_destination_logical       = APIC_DEST_LOGICAL,
+       .dest_logical                   = APIC_DEST_LOGICAL,
        .check_apicid_used              = NULL,
        .check_apicid_present           = NULL,
 
index 17526d7a8ab341c5bce93a3d2226192f078e3f7f..7f8b32b20897821f353e0428aec2176fee8eb060 100644 (file)
@@ -806,7 +806,7 @@ void send_IPI_self(int vector)
         * Wait for idle.
         */
        apic_wait_icr_idle();
-       cfg = APIC_DM_FIXED | APIC_DEST_SELF | vector | apic->apic_destination_logical;
+       cfg = APIC_DM_FIXED | APIC_DEST_SELF | vector | apic->dest_logical;
        /*
         * Send the IPI. The write to APIC_ICR fires this off.
         */
index 400b7bd48f670eab3b979c3a1ff2700e016ad244..e2e4895ca69ffe4fb969f0823334d3496fdf33c7 100644 (file)
@@ -30,7 +30,7 @@
 
 static inline int __prepare_ICR(unsigned int shortcut, int vector)
 {
-       unsigned int icr = shortcut | apic->apic_destination_logical;
+       unsigned int icr = shortcut | apic->dest_logical;
 
        switch (vector) {
        default:
index f0a173718d9f76fa3e396bd673a0e6b3993720f5..45c096f605fe4d49e504ccba238bf24be6091b39 100644 (file)
@@ -583,7 +583,7 @@ wakeup_secondary_cpu_via_nmi(int logical_apicid, unsigned long start_eip)
        /* Target chip */
        /* Boot on the stack */
        /* Kick the second */
-       apic_icr_write(APIC_DM_NMI |  apic->apic_destination_logical, logical_apicid);
+       apic_icr_write(APIC_DM_NMI | apic->dest_logical, logical_apicid);
 
        pr_debug("Waiting for send to finish...\n");
        send_status = safe_apic_wait_icr_idle();
index 13ee7dc9b952625e085bf71883905cc721088739..7c52840f20502324e623bafef1056648a6751765 100644 (file)
@@ -70,7 +70,7 @@ struct genapic apic_bigsmp = {
 
        .target_cpus                    = bigsmp_target_cpus,
        .disable_esr                    = 1,
-       .apic_destination_logical       = 0,
+       .dest_logical                   = 0,
        .check_apicid_used              = check_apicid_used,
        .check_apicid_present           = check_apicid_present,
 
index d3fe8017e94a0f5d0315e517f61cdc08f428257d..53fa1ad831842468c3bb8c1cf2b2c9cdf00f2299 100644 (file)
@@ -37,7 +37,7 @@ struct genapic apic_default = {
 
        .target_cpus                    = default_target_cpus,
        .disable_esr                    = 0,
-       .apic_destination_logical       = APIC_DEST_LOGICAL,
+       .dest_logical                   = APIC_DEST_LOGICAL,
        .check_apicid_used              = check_apicid_used,
        .check_apicid_present           = check_apicid_present,
 
index 61b5da213ce623137e4e6ac09a8d6b9bb7f4cbbd..50fed0225cda8146ca682a038cd570050d9e00cb 100644 (file)
@@ -113,7 +113,7 @@ struct genapic apic_es7000 = {
 
        .target_cpus                    = es7000_target_cpus,
        .disable_esr                    = 1,
-       .apic_destination_logical       = 0,
+       .dest_logical                   = 0,
        .check_apicid_used              = check_apicid_used,
        .check_apicid_present           = check_apicid_present,
 
index f3b7840d227d7b24216934721ba9cdfbc264cded..1fb1b1a4aa00fe327835cf7987c0a8ab626806b4 100644 (file)
@@ -57,7 +57,7 @@ struct genapic apic_numaq = {
 
        .target_cpus                    = numaq_target_cpus,
        .disable_esr                    = 1,
-       .apic_destination_logical       = APIC_DEST_LOGICAL,
+       .dest_logical                   = APIC_DEST_LOGICAL,
        .check_apicid_used              = check_apicid_used,
        .check_apicid_present           = check_apicid_present,
 
index 95e075b61bddde89a9e7bd95ab3644a4f0233cb4..5c27d4d824e597413042b49772f8782a05739229 100644 (file)
@@ -50,7 +50,7 @@ struct genapic apic_summit = {
 
        .target_cpus                    = summit_target_cpus,
        .disable_esr                    = 1,
-       .apic_destination_logical       = APIC_DEST_LOGICAL,
+       .dest_logical                   = APIC_DEST_LOGICAL,
        .check_apicid_used              = check_apicid_used,
        .check_apicid_present           = check_apicid_present,