aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-01-27 23:29:25 -0500
committerIngo Molnar <mingo@elte.hu>2009-01-28 17:20:19 -0500
commitbdb1a9b62fc182d4da3143e346f7a0925d243352 (patch)
treefc3233442c7fed2a1dbd5033955fd7635bc742ea /arch/x86/kernel
parent0b06e734bff7554c31eac4aad2fc9be4adb7c1c1 (diff)
x86, apic: rename genapic::apic_destination_logical to genapic::dest_logical
This field name was unreasonably long - shorten it. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r--arch/x86/kernel/genapic_flat_64.c10
-rw-r--r--arch/x86/kernel/genx2apic_cluster.c8
-rw-r--r--arch/x86/kernel/genx2apic_phys.c2
-rw-r--r--arch/x86/kernel/genx2apic_uv_x.c2
-rw-r--r--arch/x86/kernel/io_apic.c2
-rw-r--r--arch/x86/kernel/ipi.c2
-rw-r--r--arch/x86/kernel/smpboot.c2
7 files changed, 14 insertions, 14 deletions
diff --git a/arch/x86/kernel/genapic_flat_64.c b/arch/x86/kernel/genapic_flat_64.c
index fd242c6b3ba1..d22cbdaee208 100644
--- a/arch/x86/kernel/genapic_flat_64.c
+++ b/arch/x86/kernel/genapic_flat_64.c
@@ -74,7 +74,7 @@ static inline void _flat_send_IPI_mask(unsigned long mask, int vector)
74 unsigned long flags; 74 unsigned long flags;
75 75
76 local_irq_save(flags); 76 local_irq_save(flags);
77 __send_IPI_dest_field(mask, vector, apic->apic_destination_logical); 77 __send_IPI_dest_field(mask, vector, apic->dest_logical);
78 local_irq_restore(flags); 78 local_irq_restore(flags);
79} 79}
80 80
@@ -114,7 +114,7 @@ static void flat_send_IPI_allbutself(int vector)
114 _flat_send_IPI_mask(mask, vector); 114 _flat_send_IPI_mask(mask, vector);
115 } 115 }
116 } else if (num_online_cpus() > 1) { 116 } else if (num_online_cpus() > 1) {
117 __send_IPI_shortcut(APIC_DEST_ALLBUT, vector, apic->apic_destination_logical); 117 __send_IPI_shortcut(APIC_DEST_ALLBUT, vector, apic->dest_logical);
118 } 118 }
119} 119}
120 120
@@ -123,7 +123,7 @@ static void flat_send_IPI_all(int vector)
123 if (vector == NMI_VECTOR) 123 if (vector == NMI_VECTOR)
124 flat_send_IPI_mask(cpu_online_mask, vector); 124 flat_send_IPI_mask(cpu_online_mask, vector);
125 else 125 else
126 __send_IPI_shortcut(APIC_DEST_ALLINC, vector, apic->apic_destination_logical); 126 __send_IPI_shortcut(APIC_DEST_ALLINC, vector, apic->dest_logical);
127} 127}
128 128
129static unsigned int get_apic_id(unsigned long x) 129static unsigned int get_apic_id(unsigned long x)
@@ -185,7 +185,7 @@ struct genapic apic_flat = {
185 185
186 .target_cpus = flat_target_cpus, 186 .target_cpus = flat_target_cpus,
187 .disable_esr = 0, 187 .disable_esr = 0,
188 .apic_destination_logical = APIC_DEST_LOGICAL, 188 .dest_logical = APIC_DEST_LOGICAL,
189 .check_apicid_used = NULL, 189 .check_apicid_used = NULL,
190 .check_apicid_present = NULL, 190 .check_apicid_present = NULL,
191 191
@@ -331,7 +331,7 @@ struct genapic apic_physflat = {
331 331
332 .target_cpus = physflat_target_cpus, 332 .target_cpus = physflat_target_cpus,
333 .disable_esr = 0, 333 .disable_esr = 0,
334 .apic_destination_logical = 0, 334 .dest_logical = 0,
335 .check_apicid_used = NULL, 335 .check_apicid_used = NULL,
336 .check_apicid_present = NULL, 336 .check_apicid_present = NULL,
337 337
diff --git a/arch/x86/kernel/genx2apic_cluster.c b/arch/x86/kernel/genx2apic_cluster.c
index a76e75ecc206..b91a48eae52e 100644
--- a/arch/x86/kernel/genx2apic_cluster.c
+++ b/arch/x86/kernel/genx2apic_cluster.c
@@ -64,7 +64,7 @@ static void x2apic_send_IPI_mask(const struct cpumask *mask, int vector)
64 for_each_cpu(query_cpu, mask) 64 for_each_cpu(query_cpu, mask)
65 __x2apic_send_IPI_dest( 65 __x2apic_send_IPI_dest(
66 per_cpu(x86_cpu_to_logical_apicid, query_cpu), 66 per_cpu(x86_cpu_to_logical_apicid, query_cpu),
67 vector, apic->apic_destination_logical); 67 vector, apic->dest_logical);
68 local_irq_restore(flags); 68 local_irq_restore(flags);
69} 69}
70 70
@@ -80,7 +80,7 @@ static void x2apic_send_IPI_mask_allbutself(const struct cpumask *mask,
80 if (query_cpu != this_cpu) 80 if (query_cpu != this_cpu)
81 __x2apic_send_IPI_dest( 81 __x2apic_send_IPI_dest(
82 per_cpu(x86_cpu_to_logical_apicid, query_cpu), 82 per_cpu(x86_cpu_to_logical_apicid, query_cpu),
83 vector, apic->apic_destination_logical); 83 vector, apic->dest_logical);
84 local_irq_restore(flags); 84 local_irq_restore(flags);
85} 85}
86 86
@@ -95,7 +95,7 @@ static void x2apic_send_IPI_allbutself(int vector)
95 if (query_cpu != this_cpu) 95 if (query_cpu != this_cpu)
96 __x2apic_send_IPI_dest( 96 __x2apic_send_IPI_dest(
97 per_cpu(x86_cpu_to_logical_apicid, query_cpu), 97 per_cpu(x86_cpu_to_logical_apicid, query_cpu),
98 vector, apic->apic_destination_logical); 98 vector, apic->dest_logical);
99 local_irq_restore(flags); 99 local_irq_restore(flags);
100} 100}
101 101
@@ -187,7 +187,7 @@ struct genapic apic_x2apic_cluster = {
187 187
188 .target_cpus = x2apic_target_cpus, 188 .target_cpus = x2apic_target_cpus,
189 .disable_esr = 0, 189 .disable_esr = 0,
190 .apic_destination_logical = APIC_DEST_LOGICAL, 190 .dest_logical = APIC_DEST_LOGICAL,
191 .check_apicid_used = NULL, 191 .check_apicid_used = NULL,
192 .check_apicid_present = NULL, 192 .check_apicid_present = NULL,
193 193
diff --git a/arch/x86/kernel/genx2apic_phys.c b/arch/x86/kernel/genx2apic_phys.c
index 9b6d68deb147..f070e86af0f4 100644
--- a/arch/x86/kernel/genx2apic_phys.c
+++ b/arch/x86/kernel/genx2apic_phys.c
@@ -183,7 +183,7 @@ struct genapic apic_x2apic_phys = {
183 183
184 .target_cpus = x2apic_target_cpus, 184 .target_cpus = x2apic_target_cpus,
185 .disable_esr = 0, 185 .disable_esr = 0,
186 .apic_destination_logical = 0, 186 .dest_logical = 0,
187 .check_apicid_used = NULL, 187 .check_apicid_used = NULL,
188 .check_apicid_present = NULL, 188 .check_apicid_present = NULL,
189 189
diff --git a/arch/x86/kernel/genx2apic_uv_x.c b/arch/x86/kernel/genx2apic_uv_x.c
index 0a756800c11a..c8a891586799 100644
--- a/arch/x86/kernel/genx2apic_uv_x.c
+++ b/arch/x86/kernel/genx2apic_uv_x.c
@@ -248,7 +248,7 @@ struct genapic apic_x2apic_uv_x = {
248 248
249 .target_cpus = uv_target_cpus, 249 .target_cpus = uv_target_cpus,
250 .disable_esr = 0, 250 .disable_esr = 0,
251 .apic_destination_logical = APIC_DEST_LOGICAL, 251 .dest_logical = APIC_DEST_LOGICAL,
252 .check_apicid_used = NULL, 252 .check_apicid_used = NULL,
253 .check_apicid_present = NULL, 253 .check_apicid_present = NULL,
254 254
diff --git a/arch/x86/kernel/io_apic.c b/arch/x86/kernel/io_apic.c
index 17526d7a8ab3..7f8b32b20897 100644
--- a/arch/x86/kernel/io_apic.c
+++ b/arch/x86/kernel/io_apic.c
@@ -806,7 +806,7 @@ void send_IPI_self(int vector)
806 * Wait for idle. 806 * Wait for idle.
807 */ 807 */
808 apic_wait_icr_idle(); 808 apic_wait_icr_idle();
809 cfg = APIC_DM_FIXED | APIC_DEST_SELF | vector | apic->apic_destination_logical; 809 cfg = APIC_DM_FIXED | APIC_DEST_SELF | vector | apic->dest_logical;
810 /* 810 /*
811 * Send the IPI. The write to APIC_ICR fires this off. 811 * Send the IPI. The write to APIC_ICR fires this off.
812 */ 812 */
diff --git a/arch/x86/kernel/ipi.c b/arch/x86/kernel/ipi.c
index 400b7bd48f67..e2e4895ca69f 100644
--- a/arch/x86/kernel/ipi.c
+++ b/arch/x86/kernel/ipi.c
@@ -30,7 +30,7 @@
30 30
31static inline int __prepare_ICR(unsigned int shortcut, int vector) 31static inline int __prepare_ICR(unsigned int shortcut, int vector)
32{ 32{
33 unsigned int icr = shortcut | apic->apic_destination_logical; 33 unsigned int icr = shortcut | apic->dest_logical;
34 34
35 switch (vector) { 35 switch (vector) {
36 default: 36 default:
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c
index f0a173718d9f..45c096f605fe 100644
--- a/arch/x86/kernel/smpboot.c
+++ b/arch/x86/kernel/smpboot.c
@@ -583,7 +583,7 @@ wakeup_secondary_cpu_via_nmi(int logical_apicid, unsigned long start_eip)
583 /* Target chip */ 583 /* Target chip */
584 /* Boot on the stack */ 584 /* Boot on the stack */
585 /* Kick the second */ 585 /* Kick the second */
586 apic_icr_write(APIC_DM_NMI | apic->apic_destination_logical, logical_apicid); 586 apic_icr_write(APIC_DM_NMI | apic->dest_logical, logical_apicid);
587 587
588 pr_debug("Waiting for send to finish...\n"); 588 pr_debug("Waiting for send to finish...\n");
589 send_status = safe_apic_wait_icr_idle(); 589 send_status = safe_apic_wait_icr_idle();