diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-01-27 23:29:25 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-28 17:20:19 -0500 |
commit | bdb1a9b62fc182d4da3143e346f7a0925d243352 (patch) | |
tree | fc3233442c7fed2a1dbd5033955fd7635bc742ea /arch | |
parent | 0b06e734bff7554c31eac4aad2fc9be4adb7c1c1 (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')
-rw-r--r-- | arch/x86/include/asm/genapic.h | 2 | ||||
-rw-r--r-- | arch/x86/kernel/genapic_flat_64.c | 10 | ||||
-rw-r--r-- | arch/x86/kernel/genx2apic_cluster.c | 8 | ||||
-rw-r--r-- | arch/x86/kernel/genx2apic_phys.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/genx2apic_uv_x.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/io_apic.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/ipi.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/smpboot.c | 2 | ||||
-rw-r--r-- | arch/x86/mach-generic/bigsmp.c | 2 | ||||
-rw-r--r-- | arch/x86/mach-generic/default.c | 2 | ||||
-rw-r--r-- | arch/x86/mach-generic/es7000.c | 2 | ||||
-rw-r--r-- | arch/x86/mach-generic/numaq.c | 2 | ||||
-rw-r--r-- | arch/x86/mach-generic/summit.c | 2 |
13 files changed, 20 insertions, 20 deletions
diff --git a/arch/x86/include/asm/genapic.h b/arch/x86/include/asm/genapic.h index 7aee4a4c5244..f9d1ec018fd3 100644 --- a/arch/x86/include/asm/genapic.h +++ b/arch/x86/include/asm/genapic.h | |||
@@ -30,7 +30,7 @@ struct genapic { | |||
30 | 30 | ||
31 | int disable_esr; | 31 | int disable_esr; |
32 | 32 | ||
33 | int apic_destination_logical; | 33 | int dest_logical; |
34 | unsigned long (*check_apicid_used)(physid_mask_t bitmap, int apicid); | 34 | unsigned long (*check_apicid_used)(physid_mask_t bitmap, int apicid); |
35 | unsigned long (*check_apicid_present)(int apicid); | 35 | unsigned long (*check_apicid_present)(int apicid); |
36 | 36 | ||
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 | ||
129 | static unsigned int get_apic_id(unsigned long x) | 129 | static 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 | ||
31 | static inline int __prepare_ICR(unsigned int shortcut, int vector) | 31 | static 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(); |
diff --git a/arch/x86/mach-generic/bigsmp.c b/arch/x86/mach-generic/bigsmp.c index 13ee7dc9b952..7c52840f2050 100644 --- a/arch/x86/mach-generic/bigsmp.c +++ b/arch/x86/mach-generic/bigsmp.c | |||
@@ -70,7 +70,7 @@ struct genapic apic_bigsmp = { | |||
70 | 70 | ||
71 | .target_cpus = bigsmp_target_cpus, | 71 | .target_cpus = bigsmp_target_cpus, |
72 | .disable_esr = 1, | 72 | .disable_esr = 1, |
73 | .apic_destination_logical = 0, | 73 | .dest_logical = 0, |
74 | .check_apicid_used = check_apicid_used, | 74 | .check_apicid_used = check_apicid_used, |
75 | .check_apicid_present = check_apicid_present, | 75 | .check_apicid_present = check_apicid_present, |
76 | 76 | ||
diff --git a/arch/x86/mach-generic/default.c b/arch/x86/mach-generic/default.c index d3fe8017e94a..53fa1ad83184 100644 --- a/arch/x86/mach-generic/default.c +++ b/arch/x86/mach-generic/default.c | |||
@@ -37,7 +37,7 @@ struct genapic apic_default = { | |||
37 | 37 | ||
38 | .target_cpus = default_target_cpus, | 38 | .target_cpus = default_target_cpus, |
39 | .disable_esr = 0, | 39 | .disable_esr = 0, |
40 | .apic_destination_logical = APIC_DEST_LOGICAL, | 40 | .dest_logical = APIC_DEST_LOGICAL, |
41 | .check_apicid_used = check_apicid_used, | 41 | .check_apicid_used = check_apicid_used, |
42 | .check_apicid_present = check_apicid_present, | 42 | .check_apicid_present = check_apicid_present, |
43 | 43 | ||
diff --git a/arch/x86/mach-generic/es7000.c b/arch/x86/mach-generic/es7000.c index 61b5da213ce6..50fed0225cda 100644 --- a/arch/x86/mach-generic/es7000.c +++ b/arch/x86/mach-generic/es7000.c | |||
@@ -113,7 +113,7 @@ struct genapic apic_es7000 = { | |||
113 | 113 | ||
114 | .target_cpus = es7000_target_cpus, | 114 | .target_cpus = es7000_target_cpus, |
115 | .disable_esr = 1, | 115 | .disable_esr = 1, |
116 | .apic_destination_logical = 0, | 116 | .dest_logical = 0, |
117 | .check_apicid_used = check_apicid_used, | 117 | .check_apicid_used = check_apicid_used, |
118 | .check_apicid_present = check_apicid_present, | 118 | .check_apicid_present = check_apicid_present, |
119 | 119 | ||
diff --git a/arch/x86/mach-generic/numaq.c b/arch/x86/mach-generic/numaq.c index f3b7840d227d..1fb1b1a4aa00 100644 --- a/arch/x86/mach-generic/numaq.c +++ b/arch/x86/mach-generic/numaq.c | |||
@@ -57,7 +57,7 @@ struct genapic apic_numaq = { | |||
57 | 57 | ||
58 | .target_cpus = numaq_target_cpus, | 58 | .target_cpus = numaq_target_cpus, |
59 | .disable_esr = 1, | 59 | .disable_esr = 1, |
60 | .apic_destination_logical = APIC_DEST_LOGICAL, | 60 | .dest_logical = APIC_DEST_LOGICAL, |
61 | .check_apicid_used = check_apicid_used, | 61 | .check_apicid_used = check_apicid_used, |
62 | .check_apicid_present = check_apicid_present, | 62 | .check_apicid_present = check_apicid_present, |
63 | 63 | ||
diff --git a/arch/x86/mach-generic/summit.c b/arch/x86/mach-generic/summit.c index 95e075b61bdd..5c27d4d824e5 100644 --- a/arch/x86/mach-generic/summit.c +++ b/arch/x86/mach-generic/summit.c | |||
@@ -50,7 +50,7 @@ struct genapic apic_summit = { | |||
50 | 50 | ||
51 | .target_cpus = summit_target_cpus, | 51 | .target_cpus = summit_target_cpus, |
52 | .disable_esr = 1, | 52 | .disable_esr = 1, |
53 | .apic_destination_logical = APIC_DEST_LOGICAL, | 53 | .dest_logical = APIC_DEST_LOGICAL, |
54 | .check_apicid_used = check_apicid_used, | 54 | .check_apicid_used = check_apicid_used, |
55 | .check_apicid_present = check_apicid_present, | 55 | .check_apicid_present = check_apicid_present, |
56 | 56 | ||