diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-01-27 20:37:01 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-28 17:20:08 -0500 |
commit | c7967329911013a05920ef12832935c541bb8c9a (patch) | |
tree | ecdb4ceeea9331318f3bf1e6262981f55019b1cb /arch/x86 | |
parent | 4c3e51e05a7eefead4033b187394458ff8626497 (diff) |
x86: clean up apic_x2apic_uv_x
- 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/x86')
-rw-r--r-- | arch/x86/kernel/genx2apic_uv_x.c | 74 |
1 files changed, 55 insertions, 19 deletions
diff --git a/arch/x86/kernel/genx2apic_uv_x.c b/arch/x86/kernel/genx2apic_uv_x.c index bfe36249145c..94f606f204a1 100644 --- a/arch/x86/kernel/genx2apic_uv_x.c +++ b/arch/x86/kernel/genx2apic_uv_x.c | |||
@@ -237,25 +237,61 @@ static void uv_send_IPI_self(int vector) | |||
237 | } | 237 | } |
238 | 238 | ||
239 | struct genapic apic_x2apic_uv_x = { | 239 | struct genapic apic_x2apic_uv_x = { |
240 | .name = "UV large system", | 240 | |
241 | .acpi_madt_oem_check = uv_acpi_madt_oem_check, | 241 | .name = "UV large system", |
242 | .int_delivery_mode = dest_Fixed, | 242 | .probe = NULL, |
243 | .int_dest_mode = (APIC_DEST_PHYSICAL != 0), | 243 | .acpi_madt_oem_check = uv_acpi_madt_oem_check, |
244 | .target_cpus = uv_target_cpus, | 244 | .apic_id_registered = uv_apic_id_registered, |
245 | .vector_allocation_domain = uv_vector_allocation_domain, | 245 | |
246 | .apic_id_registered = uv_apic_id_registered, | 246 | .int_delivery_mode = dest_Fixed, |
247 | .init_apic_ldr = uv_init_apic_ldr, | 247 | .int_dest_mode = (APIC_DEST_PHYSICAL != 0), |
248 | .send_IPI_all = uv_send_IPI_all, | 248 | |
249 | .send_IPI_allbutself = uv_send_IPI_allbutself, | 249 | .target_cpus = uv_target_cpus, |
250 | .send_IPI_mask = uv_send_IPI_mask, | 250 | .ESR_DISABLE = 0, |
251 | .send_IPI_mask_allbutself = uv_send_IPI_mask_allbutself, | 251 | .apic_destination_logical = 0, |
252 | .send_IPI_self = uv_send_IPI_self, | 252 | .check_apicid_used = NULL, |
253 | .cpu_mask_to_apicid = uv_cpu_mask_to_apicid, | 253 | .check_apicid_present = NULL, |
254 | .cpu_mask_to_apicid_and = uv_cpu_mask_to_apicid_and, | 254 | |
255 | .phys_pkg_id = phys_pkg_id, | 255 | .no_balance_irq = 0, |
256 | .get_apic_id = get_apic_id, | 256 | .no_ioapic_check = 0, |
257 | .set_apic_id = set_apic_id, | 257 | |
258 | .apic_id_mask = (0xFFFFFFFFu), | 258 | .vector_allocation_domain = uv_vector_allocation_domain, |
259 | .init_apic_ldr = uv_init_apic_ldr, | ||
260 | |||
261 | .ioapic_phys_id_map = NULL, | ||
262 | .setup_apic_routing = NULL, | ||
263 | .multi_timer_check = NULL, | ||
264 | .apicid_to_node = NULL, | ||
265 | .cpu_to_logical_apicid = NULL, | ||
266 | .cpu_present_to_apicid = NULL, | ||
267 | .apicid_to_cpu_present = NULL, | ||
268 | .setup_portio_remap = NULL, | ||
269 | .check_phys_apicid_present = NULL, | ||
270 | .enable_apic_mode = NULL, | ||
271 | .phys_pkg_id = phys_pkg_id, | ||
272 | .mps_oem_check = NULL, | ||
273 | |||
274 | .get_apic_id = get_apic_id, | ||
275 | .set_apic_id = set_apic_id, | ||
276 | .apic_id_mask = 0xFFFFFFFFu, | ||
277 | |||
278 | .cpu_mask_to_apicid = uv_cpu_mask_to_apicid, | ||
279 | .cpu_mask_to_apicid_and = uv_cpu_mask_to_apicid_and, | ||
280 | |||
281 | .send_IPI_mask = uv_send_IPI_mask, | ||
282 | .send_IPI_mask_allbutself = uv_send_IPI_mask_allbutself, | ||
283 | .send_IPI_allbutself = uv_send_IPI_allbutself, | ||
284 | .send_IPI_all = uv_send_IPI_all, | ||
285 | .send_IPI_self = uv_send_IPI_self, | ||
286 | |||
287 | .wakeup_cpu = NULL, | ||
288 | .trampoline_phys_low = 0, | ||
289 | .trampoline_phys_high = 0, | ||
290 | .wait_for_init_deassert = NULL, | ||
291 | .smp_callin_clear_local_apic = NULL, | ||
292 | .store_NMI_vector = NULL, | ||
293 | .restore_NMI_vector = NULL, | ||
294 | .inquire_remote_apic = NULL, | ||
259 | }; | 295 | }; |
260 | 296 | ||
261 | static __cpuinit void set_x2apic_extra_bits(int pnode) | 297 | static __cpuinit void set_x2apic_extra_bits(int pnode) |