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 | 05c155c235c757329ec89ad591516538ed8352c0 (patch) | |
tree | 60a85bc352445e87dc9e5b5688e3867735c09fe2 /arch/x86 | |
parent | c7967329911013a05920ef12832935c541bb8c9a (diff) |
x86: clean up apic_x2apic_phys
- 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_phys.c | 74 |
1 files changed, 55 insertions, 19 deletions
diff --git a/arch/x86/kernel/genx2apic_phys.c b/arch/x86/kernel/genx2apic_phys.c index 21bcc0e098ba..c98361fb7ee1 100644 --- a/arch/x86/kernel/genx2apic_phys.c +++ b/arch/x86/kernel/genx2apic_phys.c | |||
@@ -172,23 +172,59 @@ static void init_x2apic_ldr(void) | |||
172 | } | 172 | } |
173 | 173 | ||
174 | struct genapic apic_x2apic_phys = { | 174 | struct genapic apic_x2apic_phys = { |
175 | .name = "physical x2apic", | 175 | |
176 | .acpi_madt_oem_check = x2apic_acpi_madt_oem_check, | 176 | .name = "physical x2apic", |
177 | .int_delivery_mode = dest_Fixed, | 177 | .probe = NULL, |
178 | .int_dest_mode = (APIC_DEST_PHYSICAL != 0), | 178 | .acpi_madt_oem_check = x2apic_acpi_madt_oem_check, |
179 | .target_cpus = x2apic_target_cpus, | 179 | .apic_id_registered = x2apic_apic_id_registered, |
180 | .vector_allocation_domain = x2apic_vector_allocation_domain, | 180 | |
181 | .apic_id_registered = x2apic_apic_id_registered, | 181 | .int_delivery_mode = dest_Fixed, |
182 | .init_apic_ldr = init_x2apic_ldr, | 182 | .int_dest_mode = (APIC_DEST_PHYSICAL != 0), |
183 | .send_IPI_all = x2apic_send_IPI_all, | 183 | |
184 | .send_IPI_allbutself = x2apic_send_IPI_allbutself, | 184 | .target_cpus = x2apic_target_cpus, |
185 | .send_IPI_mask = x2apic_send_IPI_mask, | 185 | .ESR_DISABLE = 0, |
186 | .send_IPI_mask_allbutself = x2apic_send_IPI_mask_allbutself, | 186 | .apic_destination_logical = 0, |
187 | .send_IPI_self = x2apic_send_IPI_self, | 187 | .check_apicid_used = NULL, |
188 | .cpu_mask_to_apicid = x2apic_cpu_mask_to_apicid, | 188 | .check_apicid_present = NULL, |
189 | .cpu_mask_to_apicid_and = x2apic_cpu_mask_to_apicid_and, | 189 | |
190 | .phys_pkg_id = phys_pkg_id, | 190 | .no_balance_irq = 0, |
191 | .get_apic_id = get_apic_id, | 191 | .no_ioapic_check = 0, |
192 | .set_apic_id = set_apic_id, | 192 | |
193 | .apic_id_mask = (0xFFFFFFFFu), | 193 | .vector_allocation_domain = x2apic_vector_allocation_domain, |
194 | .init_apic_ldr = init_x2apic_ldr, | ||
195 | |||
196 | .ioapic_phys_id_map = NULL, | ||
197 | .setup_apic_routing = NULL, | ||
198 | .multi_timer_check = NULL, | ||
199 | .apicid_to_node = NULL, | ||
200 | .cpu_to_logical_apicid = NULL, | ||
201 | .cpu_present_to_apicid = NULL, | ||
202 | .apicid_to_cpu_present = NULL, | ||
203 | .setup_portio_remap = NULL, | ||
204 | .check_phys_apicid_present = NULL, | ||
205 | .enable_apic_mode = NULL, | ||
206 | .phys_pkg_id = phys_pkg_id, | ||
207 | .mps_oem_check = NULL, | ||
208 | |||
209 | .get_apic_id = get_apic_id, | ||
210 | .set_apic_id = set_apic_id, | ||
211 | .apic_id_mask = 0xFFFFFFFFu, | ||
212 | |||
213 | .cpu_mask_to_apicid = x2apic_cpu_mask_to_apicid, | ||
214 | .cpu_mask_to_apicid_and = x2apic_cpu_mask_to_apicid_and, | ||
215 | |||
216 | .send_IPI_mask = x2apic_send_IPI_mask, | ||
217 | .send_IPI_mask_allbutself = x2apic_send_IPI_mask_allbutself, | ||
218 | .send_IPI_allbutself = x2apic_send_IPI_allbutself, | ||
219 | .send_IPI_all = x2apic_send_IPI_all, | ||
220 | .send_IPI_self = x2apic_send_IPI_self, | ||
221 | |||
222 | .wakeup_cpu = NULL, | ||
223 | .trampoline_phys_low = 0, | ||
224 | .trampoline_phys_high = 0, | ||
225 | .wait_for_init_deassert = NULL, | ||
226 | .smp_callin_clear_local_apic = NULL, | ||
227 | .store_NMI_vector = NULL, | ||
228 | .restore_NMI_vector = NULL, | ||
229 | .inquire_remote_apic = NULL, | ||
194 | }; | 230 | }; |