Commit f2f05ee8 authored by Ingo Molnar's avatar Ingo Molnar

x86: clean up genapic_flat

- 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: default avatarIngo Molnar <mingo@elte.hu>
parent c8d46cf0
...@@ -175,25 +175,60 @@ static unsigned int phys_pkg_id(int index_msb) ...@@ -175,25 +175,60 @@ static unsigned int phys_pkg_id(int index_msb)
} }
struct genapic apic_flat = { struct genapic apic_flat = {
.name = "flat", .name = "flat",
.acpi_madt_oem_check = flat_acpi_madt_oem_check, .probe = NULL,
.int_delivery_mode = dest_LowestPrio, .acpi_madt_oem_check = flat_acpi_madt_oem_check,
.int_dest_mode = (APIC_DEST_LOGICAL != 0), .apic_id_registered = flat_apic_id_registered,
.target_cpus = flat_target_cpus,
.vector_allocation_domain = flat_vector_allocation_domain, .int_delivery_mode = dest_LowestPrio,
.apic_id_registered = flat_apic_id_registered, .int_dest_mode = (APIC_DEST_LOGICAL != 0),
.init_apic_ldr = flat_init_apic_ldr,
.send_IPI_all = flat_send_IPI_all, .target_cpus = flat_target_cpus,
.send_IPI_allbutself = flat_send_IPI_allbutself, .ESR_DISABLE = 0,
.send_IPI_mask = flat_send_IPI_mask, .apic_destination_logical = 0,
.send_IPI_mask_allbutself = flat_send_IPI_mask_allbutself, .check_apicid_used = NULL,
.send_IPI_self = apic_send_IPI_self, .check_apicid_present = NULL,
.cpu_mask_to_apicid = flat_cpu_mask_to_apicid,
.cpu_mask_to_apicid_and = flat_cpu_mask_to_apicid_and, .no_balance_irq = 0,
.phys_pkg_id = phys_pkg_id, .no_ioapic_check = 0,
.get_apic_id = get_apic_id,
.set_apic_id = set_apic_id, .vector_allocation_domain = flat_vector_allocation_domain,
.apic_id_mask = (0xFFu<<24), .init_apic_ldr = flat_init_apic_ldr,
.ioapic_phys_id_map = NULL,
.setup_apic_routing = NULL,
.multi_timer_check = NULL,
.apicid_to_node = NULL,
.cpu_to_logical_apicid = NULL,
.cpu_present_to_apicid = NULL,
.apicid_to_cpu_present = NULL,
.setup_portio_remap = NULL,
.check_phys_apicid_present = NULL,
.enable_apic_mode = NULL,
.phys_pkg_id = phys_pkg_id,
.mps_oem_check = NULL,
.get_apic_id = get_apic_id,
.set_apic_id = set_apic_id,
.apic_id_mask = 0xFFu << 24,
.cpu_mask_to_apicid = flat_cpu_mask_to_apicid,
.cpu_mask_to_apicid_and = flat_cpu_mask_to_apicid_and,
.send_IPI_mask = flat_send_IPI_mask,
.send_IPI_mask_allbutself = flat_send_IPI_mask_allbutself,
.send_IPI_allbutself = flat_send_IPI_allbutself,
.send_IPI_all = flat_send_IPI_all,
.send_IPI_self = apic_send_IPI_self,
.wakeup_cpu = NULL,
.trampoline_phys_low = 0,
.trampoline_phys_high = 0,
.wait_for_init_deassert = NULL,
.smp_callin_clear_local_apic = NULL,
.store_NMI_vector = NULL,
.restore_NMI_vector = NULL,
.inquire_remote_apic = NULL,
}; };
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment