aboutsummaryrefslogtreecommitdiffstats
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:07 -0500
commitf2f05ee8b8d346d4edee766384a5fedafdd4f9f8 (patch)
treecf0df8d91b18fea077af4d44a1c7d7d8443bcf81
parentc8d46cf06dc2e3a8f57a350eb9f9b19fd7f2ffe5 (diff)
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: Ingo Molnar <mingo@elte.hu>
-rw-r--r--arch/x86/kernel/genapic_flat_64.c73
1 files changed, 54 insertions, 19 deletions
diff --git a/arch/x86/kernel/genapic_flat_64.c b/arch/x86/kernel/genapic_flat_64.c
index 34185488e4fb..f1bfdd3608a8 100644
--- a/arch/x86/kernel/genapic_flat_64.c
+++ b/arch/x86/kernel/genapic_flat_64.c
@@ -175,25 +175,60 @@ static unsigned int phys_pkg_id(int index_msb)
175} 175}
176 176
177struct genapic apic_flat = { 177struct genapic apic_flat = {
178 .name = "flat", 178 .name = "flat",
179 .acpi_madt_oem_check = flat_acpi_madt_oem_check, 179 .probe = NULL,
180 .int_delivery_mode = dest_LowestPrio, 180 .acpi_madt_oem_check = flat_acpi_madt_oem_check,
181 .int_dest_mode = (APIC_DEST_LOGICAL != 0), 181 .apic_id_registered = flat_apic_id_registered,
182 .target_cpus = flat_target_cpus, 182
183 .vector_allocation_domain = flat_vector_allocation_domain, 183 .int_delivery_mode = dest_LowestPrio,
184 .apic_id_registered = flat_apic_id_registered, 184 .int_dest_mode = (APIC_DEST_LOGICAL != 0),
185 .init_apic_ldr = flat_init_apic_ldr, 185
186 .send_IPI_all = flat_send_IPI_all, 186 .target_cpus = flat_target_cpus,
187 .send_IPI_allbutself = flat_send_IPI_allbutself, 187 .ESR_DISABLE = 0,
188 .send_IPI_mask = flat_send_IPI_mask, 188 .apic_destination_logical = 0,
189 .send_IPI_mask_allbutself = flat_send_IPI_mask_allbutself, 189 .check_apicid_used = NULL,
190 .send_IPI_self = apic_send_IPI_self, 190 .check_apicid_present = NULL,
191 .cpu_mask_to_apicid = flat_cpu_mask_to_apicid, 191
192 .cpu_mask_to_apicid_and = flat_cpu_mask_to_apicid_and, 192 .no_balance_irq = 0,
193 .phys_pkg_id = phys_pkg_id, 193 .no_ioapic_check = 0,
194 .get_apic_id = get_apic_id, 194
195 .set_apic_id = set_apic_id, 195 .vector_allocation_domain = flat_vector_allocation_domain,
196 .apic_id_mask = (0xFFu<<24), 196 .init_apic_ldr = flat_init_apic_ldr,
197
198 .ioapic_phys_id_map = NULL,
199 .setup_apic_routing = NULL,
200 .multi_timer_check = NULL,
201 .apicid_to_node = NULL,
202 .cpu_to_logical_apicid = NULL,
203 .cpu_present_to_apicid = NULL,
204 .apicid_to_cpu_present = NULL,
205 .setup_portio_remap = NULL,
206 .check_phys_apicid_present = NULL,
207 .enable_apic_mode = NULL,
208 .phys_pkg_id = phys_pkg_id,
209 .mps_oem_check = NULL,
210
211 .get_apic_id = get_apic_id,
212 .set_apic_id = set_apic_id,
213 .apic_id_mask = 0xFFu << 24,
214
215 .cpu_mask_to_apicid = flat_cpu_mask_to_apicid,
216 .cpu_mask_to_apicid_and = flat_cpu_mask_to_apicid_and,
217
218 .send_IPI_mask = flat_send_IPI_mask,
219 .send_IPI_mask_allbutself = flat_send_IPI_mask_allbutself,
220 .send_IPI_allbutself = flat_send_IPI_allbutself,
221 .send_IPI_all = flat_send_IPI_all,
222 .send_IPI_self = apic_send_IPI_self,
223
224 .wakeup_cpu = NULL,
225 .trampoline_phys_low = 0,
226 .trampoline_phys_high = 0,
227 .wait_for_init_deassert = NULL,
228 .smp_callin_clear_local_apic = NULL,
229 .store_NMI_vector = NULL,
230 .restore_NMI_vector = NULL,
231 .inquire_remote_apic = NULL,
197}; 232};
198 233
199/* 234/*