aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-01-27 20:37:01 -0500
committerIngo Molnar <mingo@elte.hu>2009-01-28 17:20:09 -0500
commit504a3c3ad45d200a6ac8be5aa019c8fa05e26dc8 (patch)
tree631632ac83f644f959b07240cc12b6a86855b609 /arch
parent05c155c235c757329ec89ad591516538ed8352c0 (diff)
x86: clean up apic_x2apic_cluster
- reorder fields so that they appear in struct genapic field ordering - add zero-initialized fields too so that it's apparent which functionality is default / missing. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/genx2apic_cluster.c74
1 files changed, 55 insertions, 19 deletions
diff --git a/arch/x86/kernel/genx2apic_cluster.c b/arch/x86/kernel/genx2apic_cluster.c
index 6ce497cc372d..fc855e503ac4 100644
--- a/arch/x86/kernel/genx2apic_cluster.c
+++ b/arch/x86/kernel/genx2apic_cluster.c
@@ -176,23 +176,59 @@ static void init_x2apic_ldr(void)
176} 176}
177 177
178struct genapic apic_x2apic_cluster = { 178struct genapic apic_x2apic_cluster = {
179 .name = "cluster x2apic", 179
180 .acpi_madt_oem_check = x2apic_acpi_madt_oem_check, 180 .name = "cluster x2apic",
181 .int_delivery_mode = dest_LowestPrio, 181 .probe = NULL,
182 .int_dest_mode = (APIC_DEST_LOGICAL != 0), 182 .acpi_madt_oem_check = x2apic_acpi_madt_oem_check,
183 .target_cpus = x2apic_target_cpus, 183 .apic_id_registered = x2apic_apic_id_registered,
184 .vector_allocation_domain = x2apic_vector_allocation_domain, 184
185 .apic_id_registered = x2apic_apic_id_registered, 185 .int_delivery_mode = dest_LowestPrio,
186 .init_apic_ldr = init_x2apic_ldr, 186 .int_dest_mode = (APIC_DEST_LOGICAL != 0),
187 .send_IPI_all = x2apic_send_IPI_all, 187
188 .send_IPI_allbutself = x2apic_send_IPI_allbutself, 188 .target_cpus = x2apic_target_cpus,
189 .send_IPI_mask = x2apic_send_IPI_mask, 189 .ESR_DISABLE = 0,
190 .send_IPI_mask_allbutself = x2apic_send_IPI_mask_allbutself, 190 .apic_destination_logical = 0,
191 .send_IPI_self = x2apic_send_IPI_self, 191 .check_apicid_used = NULL,
192 .cpu_mask_to_apicid = x2apic_cpu_mask_to_apicid, 192 .check_apicid_present = NULL,
193 .cpu_mask_to_apicid_and = x2apic_cpu_mask_to_apicid_and, 193
194 .phys_pkg_id = phys_pkg_id, 194 .no_balance_irq = 0,
195 .get_apic_id = get_apic_id, 195 .no_ioapic_check = 0,
196 .set_apic_id = set_apic_id, 196
197 .apic_id_mask = (0xFFFFFFFFu), 197 .vector_allocation_domain = x2apic_vector_allocation_domain,
198 .init_apic_ldr = init_x2apic_ldr,
199
200 .ioapic_phys_id_map = NULL,
201 .setup_apic_routing = NULL,
202 .multi_timer_check = NULL,
203 .apicid_to_node = NULL,
204 .cpu_to_logical_apicid = NULL,
205 .cpu_present_to_apicid = NULL,
206 .apicid_to_cpu_present = NULL,
207 .setup_portio_remap = NULL,
208 .check_phys_apicid_present = NULL,
209 .enable_apic_mode = NULL,
210 .phys_pkg_id = phys_pkg_id,
211 .mps_oem_check = NULL,
212
213 .get_apic_id = get_apic_id,
214 .set_apic_id = set_apic_id,
215 .apic_id_mask = 0xFFFFFFFFu,
216
217 .cpu_mask_to_apicid = x2apic_cpu_mask_to_apicid,
218 .cpu_mask_to_apicid_and = x2apic_cpu_mask_to_apicid_and,
219
220 .send_IPI_mask = x2apic_send_IPI_mask,
221 .send_IPI_mask_allbutself = x2apic_send_IPI_mask_allbutself,
222 .send_IPI_allbutself = x2apic_send_IPI_allbutself,
223 .send_IPI_all = x2apic_send_IPI_all,
224 .send_IPI_self = x2apic_send_IPI_self,
225
226 .wakeup_cpu = NULL,
227 .trampoline_phys_low = 0,
228 .trampoline_phys_high = 0,
229 .wait_for_init_deassert = NULL,
230 .smp_callin_clear_local_apic = NULL,
231 .store_NMI_vector = NULL,
232 .restore_NMI_vector = NULL,
233 .inquire_remote_apic = NULL,
198}; 234};