diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-01-27 21:32:03 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-28 17:20:11 -0500 |
commit | fed53ebf3c4e233e085c453a27ae287ccbf149fb (patch) | |
tree | 5aab3d90eaf6f5c68a1407c6052aecd112b866cf /arch/x86/mach-generic/es7000.c | |
parent | fea3437adf778cfe69b7f8cff0afb8060d84b647 (diff) |
x86, genapic: cleanup 32-bit apic_es7000 template
Clean up the APIC driver template:
- order fields properly
- use the macro names explicitly (so that they can be renamed later)
- fill in NULL entries as well
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mach-generic/es7000.c')
-rw-r--r-- | arch/x86/mach-generic/es7000.c | 58 |
1 files changed, 57 insertions, 1 deletions
diff --git a/arch/x86/mach-generic/es7000.c b/arch/x86/mach-generic/es7000.c index 2f4f4a6e39b3..4a404ea5f928 100644 --- a/arch/x86/mach-generic/es7000.c +++ b/arch/x86/mach-generic/es7000.c | |||
@@ -100,4 +100,60 @@ static void vector_allocation_domain(int cpu, cpumask_t *retmask) | |||
100 | *retmask = (cpumask_t){ { [0] = APIC_ALL_CPUS, } }; | 100 | *retmask = (cpumask_t){ { [0] = APIC_ALL_CPUS, } }; |
101 | } | 101 | } |
102 | 102 | ||
103 | struct genapic __initdata_refok apic_es7000 = APIC_INIT("es7000", probe_es7000); | 103 | struct genapic apic_es7000 = { |
104 | |||
105 | .name = "es7000", | ||
106 | .probe = probe_es7000, | ||
107 | .acpi_madt_oem_check = acpi_madt_oem_check, | ||
108 | .apic_id_registered = apic_id_registered, | ||
109 | |||
110 | .int_delivery_mode = INT_DELIVERY_MODE, | ||
111 | .int_dest_mode = INT_DEST_MODE, | ||
112 | |||
113 | .target_cpus = target_cpus, | ||
114 | .ESR_DISABLE = esr_disable, | ||
115 | .apic_destination_logical = APIC_DEST_LOGICAL, | ||
116 | .check_apicid_used = check_apicid_used, | ||
117 | .check_apicid_present = check_apicid_present, | ||
118 | |||
119 | .no_balance_irq = NO_BALANCE_IRQ, | ||
120 | .no_ioapic_check = 0, | ||
121 | |||
122 | .vector_allocation_domain = vector_allocation_domain, | ||
123 | .init_apic_ldr = init_apic_ldr, | ||
124 | |||
125 | .ioapic_phys_id_map = ioapic_phys_id_map, | ||
126 | .setup_apic_routing = setup_apic_routing, | ||
127 | .multi_timer_check = multi_timer_check, | ||
128 | .apicid_to_node = apicid_to_node, | ||
129 | .cpu_to_logical_apicid = cpu_to_logical_apicid, | ||
130 | .cpu_present_to_apicid = cpu_present_to_apicid, | ||
131 | .apicid_to_cpu_present = apicid_to_cpu_present, | ||
132 | .setup_portio_remap = setup_portio_remap, | ||
133 | .check_phys_apicid_present = check_phys_apicid_present, | ||
134 | .enable_apic_mode = enable_apic_mode, | ||
135 | .phys_pkg_id = phys_pkg_id, | ||
136 | .mps_oem_check = mps_oem_check, | ||
137 | |||
138 | .get_apic_id = get_apic_id, | ||
139 | .set_apic_id = NULL, | ||
140 | .apic_id_mask = APIC_ID_MASK, | ||
141 | |||
142 | .cpu_mask_to_apicid = cpu_mask_to_apicid, | ||
143 | .cpu_mask_to_apicid_and = cpu_mask_to_apicid_and, | ||
144 | |||
145 | .send_IPI_mask = send_IPI_mask, | ||
146 | .send_IPI_mask_allbutself = NULL, | ||
147 | .send_IPI_allbutself = send_IPI_allbutself, | ||
148 | .send_IPI_all = send_IPI_all, | ||
149 | .send_IPI_self = NULL, | ||
150 | |||
151 | .wakeup_cpu = NULL, | ||
152 | .trampoline_phys_low = TRAMPOLINE_PHYS_LOW, | ||
153 | .trampoline_phys_high = TRAMPOLINE_PHYS_HIGH, | ||
154 | .wait_for_init_deassert = wait_for_init_deassert, | ||
155 | .smp_callin_clear_local_apic = smp_callin_clear_local_apic, | ||
156 | .store_NMI_vector = store_NMI_vector, | ||
157 | .restore_NMI_vector = restore_NMI_vector, | ||
158 | .inquire_remote_apic = inquire_remote_apic, | ||
159 | }; | ||