blob: 36ee760fd1332370956651ac7634e4bf5c19387a [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * Copyright 2004 James Cleverdon, IBM.
3 * Subject to the GNU Public License, v.2
4 *
Andi Kleenf8d31192005-07-28 21:15:42 -07005 * Flat APIC subarch code.
Linus Torvalds1da177e2005-04-16 15:20:36 -07006 *
7 * Hacked for x86-64 by James Cleverdon from i386 architecture code by
8 * Martin Bligh, Andi Kleen, James Bottomley, John Stultz, and
9 * James Cleverdon.
10 */
Andi Kleenf19cccf2007-05-02 19:27:21 +020011#include <linux/errno.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070012#include <linux/threads.h>
13#include <linux/cpumask.h>
14#include <linux/string.h>
15#include <linux/kernel.h>
16#include <linux/ctype.h>
17#include <linux/init.h>
Suresh Siddha0c81c742008-07-10 11:16:48 -070018#include <linux/hardirq.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070019#include <asm/smp.h>
Jan Beulich00f1ea62007-05-02 19:27:04 +020020#include <asm/genapic.h>
Yinghai Luc1eeb2d2009-02-16 23:02:14 -080021#include <asm/ipi.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070022
Yinghai Lu1b9b89e2008-07-21 22:08:21 -070023#ifdef CONFIG_ACPI
24#include <acpi/acpi_bus.h>
25#endif
26
Marcin Slusarz983f91f2008-10-12 11:44:08 +020027static int flat_acpi_madt_oem_check(char *oem_id, char *oem_table_id)
Yinghai Lu1b9b89e2008-07-21 22:08:21 -070028{
29 return 1;
30}
31
Mike Travisbcda0162008-12-16 17:33:59 -080032static const struct cpumask *flat_target_cpus(void)
Linus Torvalds1da177e2005-04-16 15:20:36 -070033{
Mike Travisbcda0162008-12-16 17:33:59 -080034 return cpu_online_mask;
Linus Torvalds1da177e2005-04-16 15:20:36 -070035}
36
Mike Travisbcda0162008-12-16 17:33:59 -080037static void flat_vector_allocation_domain(int cpu, struct cpumask *retmask)
Eric W. Biedermanc7111c132006-10-08 07:47:55 -060038{
39 /* Careful. Some cpus do not strictly honor the set of cpus
40 * specified in the interrupt destination when using lowest
41 * priority interrupt delivery mode.
42 *
43 * In particular there was a hyperthreading cpu observed to
44 * deliver interrupts to the wrong hyperthread when only one
45 * hyperthread was specified in the interrupt desitination.
46 */
Mike Travisbcda0162008-12-16 17:33:59 -080047 cpumask_clear(retmask);
48 cpumask_bits(retmask)[0] = APIC_ALL_CPUS;
Eric W. Biedermanc7111c132006-10-08 07:47:55 -060049}
50
Linus Torvalds1da177e2005-04-16 15:20:36 -070051/*
52 * Set up the logical destination ID.
53 *
54 * Intel recommends to set DFR, LDR and TPR before enabling
55 * an APIC. See e.g. "AP-388 82489DX User's Manual" (Intel
56 * document number 292116). So here it goes...
57 */
58static void flat_init_apic_ldr(void)
59{
60 unsigned long val;
61 unsigned long num, id;
62
63 num = smp_processor_id();
64 id = 1UL << num;
Andi Kleeneddfb4e2005-09-12 18:49:23 +020065 apic_write(APIC_DFR, APIC_DFR_FLAT);
Linus Torvalds1da177e2005-04-16 15:20:36 -070066 val = apic_read(APIC_LDR) & ~APIC_LDR_MASK;
67 val |= SET_APIC_LOGICAL_ID(id);
Andi Kleeneddfb4e2005-09-12 18:49:23 +020068 apic_write(APIC_LDR, val);
Linus Torvalds1da177e2005-04-16 15:20:36 -070069}
70
Mike Travise7986732008-12-16 17:33:52 -080071static inline void _flat_send_IPI_mask(unsigned long mask, int vector)
Linus Torvalds1da177e2005-04-16 15:20:36 -070072{
Linus Torvalds1da177e2005-04-16 15:20:36 -070073 unsigned long flags;
74
Fernando Luis Vázquez Cao2b94ab22006-09-26 10:52:33 +020075 local_irq_save(flags);
Ingo Molnardac5f412009-01-28 15:42:24 +010076 __default_send_IPI_dest_field(mask, vector, apic->dest_logical);
Linus Torvalds1da177e2005-04-16 15:20:36 -070077 local_irq_restore(flags);
78}
79
Mike Travisbcda0162008-12-16 17:33:59 -080080static void flat_send_IPI_mask(const struct cpumask *cpumask, int vector)
Mike Travise7986732008-12-16 17:33:52 -080081{
Mike Travisbcda0162008-12-16 17:33:59 -080082 unsigned long mask = cpumask_bits(cpumask)[0];
Mike Travise7986732008-12-16 17:33:52 -080083
84 _flat_send_IPI_mask(mask, vector);
85}
86
Ingo Molnardac5f412009-01-28 15:42:24 +010087static void
88 flat_send_IPI_mask_allbutself(const struct cpumask *cpumask, int vector)
Mike Travise7986732008-12-16 17:33:52 -080089{
Mike Travisbcda0162008-12-16 17:33:59 -080090 unsigned long mask = cpumask_bits(cpumask)[0];
Mike Travise7986732008-12-16 17:33:52 -080091 int cpu = smp_processor_id();
92
93 if (cpu < BITS_PER_LONG)
94 clear_bit(cpu, &mask);
Ingo Molnardac5f412009-01-28 15:42:24 +010095
Mike Travise7986732008-12-16 17:33:52 -080096 _flat_send_IPI_mask(mask, vector);
97}
98
Ashok Raj884d9e42005-06-25 14:55:02 -070099static void flat_send_IPI_allbutself(int vector)
100{
Mike Travise7986732008-12-16 17:33:52 -0800101 int cpu = smp_processor_id();
Keith Owense77deac2006-06-26 13:59:56 +0200102#ifdef CONFIG_HOTPLUG_CPU
103 int hotplug = 1;
Ashok Rajfdf26d92005-09-09 13:01:52 -0700104#else
Keith Owense77deac2006-06-26 13:59:56 +0200105 int hotplug = 0;
Ashok Rajfdf26d92005-09-09 13:01:52 -0700106#endif
Keith Owense77deac2006-06-26 13:59:56 +0200107 if (hotplug || vector == NMI_VECTOR) {
Mike Travisbcda0162008-12-16 17:33:59 -0800108 if (!cpumask_equal(cpu_online_mask, cpumask_of(cpu))) {
109 unsigned long mask = cpumask_bits(cpu_online_mask)[0];
Keith Owense77deac2006-06-26 13:59:56 +0200110
Mike Travise7986732008-12-16 17:33:52 -0800111 if (cpu < BITS_PER_LONG)
112 clear_bit(cpu, &mask);
Keith Owense77deac2006-06-26 13:59:56 +0200113
Mike Travise7986732008-12-16 17:33:52 -0800114 _flat_send_IPI_mask(mask, vector);
115 }
Keith Owense77deac2006-06-26 13:59:56 +0200116 } else if (num_online_cpus() > 1) {
Ingo Molnardac5f412009-01-28 15:42:24 +0100117 __default_send_IPI_shortcut(APIC_DEST_ALLBUT,
118 vector, apic->dest_logical);
Keith Owense77deac2006-06-26 13:59:56 +0200119 }
Ashok Raj884d9e42005-06-25 14:55:02 -0700120}
121
122static void flat_send_IPI_all(int vector)
123{
Ingo Molnardac5f412009-01-28 15:42:24 +0100124 if (vector == NMI_VECTOR) {
Mike Travisbcda0162008-12-16 17:33:59 -0800125 flat_send_IPI_mask(cpu_online_mask, vector);
Ingo Molnardac5f412009-01-28 15:42:24 +0100126 } else {
127 __default_send_IPI_shortcut(APIC_DEST_ALLINC,
128 vector, apic->dest_logical);
129 }
Ashok Raj884d9e42005-06-25 14:55:02 -0700130}
131
Ingo Molnarca6c8ed2009-01-28 14:08:38 +0100132static unsigned int flat_get_apic_id(unsigned long x)
Yinghai Luf910a9d2008-07-12 01:01:20 -0700133{
134 unsigned int id;
135
136 id = (((x)>>24) & 0xFFu);
Ingo Molnarca6c8ed2009-01-28 14:08:38 +0100137
Yinghai Luf910a9d2008-07-12 01:01:20 -0700138 return id;
139}
140
141static unsigned long set_apic_id(unsigned int id)
142{
143 unsigned long x;
144
145 x = ((id & 0xFFu)<<24);
146 return x;
147}
148
Suresh Siddha0c81c742008-07-10 11:16:48 -0700149static unsigned int read_xapic_id(void)
150{
151 unsigned int id;
152
Ingo Molnarca6c8ed2009-01-28 14:08:38 +0100153 id = flat_get_apic_id(apic_read(APIC_ID));
Suresh Siddha0c81c742008-07-10 11:16:48 -0700154 return id;
155}
156
Linus Torvalds1da177e2005-04-16 15:20:36 -0700157static int flat_apic_id_registered(void)
158{
Suresh Siddha0c81c742008-07-10 11:16:48 -0700159 return physid_isset(read_xapic_id(), phys_cpu_present_map);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700160}
161
Mike Travisbcda0162008-12-16 17:33:59 -0800162static unsigned int flat_cpu_mask_to_apicid(const struct cpumask *cpumask)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700163{
Mike Travisbcda0162008-12-16 17:33:59 -0800164 return cpumask_bits(cpumask)[0] & APIC_ALL_CPUS;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700165}
166
Mike Travis6eeb7c52008-12-16 17:33:55 -0800167static unsigned int flat_cpu_mask_to_apicid_and(const struct cpumask *cpumask,
168 const struct cpumask *andmask)
Mike Travis95d313c2008-12-16 17:33:54 -0800169{
Mike Travis6eeb7c52008-12-16 17:33:55 -0800170 unsigned long mask1 = cpumask_bits(cpumask)[0] & APIC_ALL_CPUS;
171 unsigned long mask2 = cpumask_bits(andmask)[0] & APIC_ALL_CPUS;
Mike Travis95d313c2008-12-16 17:33:54 -0800172
Mike Travis6eeb7c52008-12-16 17:33:55 -0800173 return mask1 & mask2;
Mike Travis95d313c2008-12-16 17:33:54 -0800174}
175
Ingo Molnard4c9a9f2009-01-28 13:31:22 +0100176static int flat_phys_pkg_id(int initial_apic_id, int index_msb)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700177{
ravikiran thirumalai0f4fdb72006-06-26 13:56:04 +0200178 return hard_smp_processor_id() >> index_msb;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700179}
180
181struct genapic apic_flat = {
Ingo Molnarf2f05ee2009-01-28 02:37:01 +0100182 .name = "flat",
183 .probe = NULL,
184 .acpi_madt_oem_check = flat_acpi_madt_oem_check,
185 .apic_id_registered = flat_apic_id_registered,
186
Ingo Molnarf8987a12009-01-28 04:02:31 +0100187 .irq_delivery_mode = dest_LowestPrio,
Ingo Molnar0b06e732009-01-28 05:13:04 +0100188 .irq_dest_mode = 1, /* logical */
Ingo Molnarf2f05ee2009-01-28 02:37:01 +0100189
190 .target_cpus = flat_target_cpus,
Ingo Molnar08125d32009-01-28 05:08:44 +0100191 .disable_esr = 0,
Ingo Molnarbdb1a9b2009-01-28 05:29:25 +0100192 .dest_logical = APIC_DEST_LOGICAL,
Ingo Molnarf2f05ee2009-01-28 02:37:01 +0100193 .check_apicid_used = NULL,
194 .check_apicid_present = NULL,
195
Ingo Molnarf2f05ee2009-01-28 02:37:01 +0100196 .vector_allocation_domain = flat_vector_allocation_domain,
197 .init_apic_ldr = flat_init_apic_ldr,
198
199 .ioapic_phys_id_map = NULL,
200 .setup_apic_routing = NULL,
201 .multi_timer_check = NULL,
202 .apicid_to_node = NULL,
203 .cpu_to_logical_apicid = NULL,
Ingo Molnara21769a42009-01-28 06:50:47 +0100204 .cpu_present_to_apicid = default_cpu_present_to_apicid,
Ingo Molnarf2f05ee2009-01-28 02:37:01 +0100205 .apicid_to_cpu_present = NULL,
206 .setup_portio_remap = NULL,
Ingo Molnara27a6212009-01-28 12:43:18 +0100207 .check_phys_apicid_present = default_check_phys_apicid_present,
Ingo Molnarf2f05ee2009-01-28 02:37:01 +0100208 .enable_apic_mode = NULL,
Ingo Molnard4c9a9f2009-01-28 13:31:22 +0100209 .phys_pkg_id = flat_phys_pkg_id,
Ingo Molnarf2f05ee2009-01-28 02:37:01 +0100210 .mps_oem_check = NULL,
211
Ingo Molnarca6c8ed2009-01-28 14:08:38 +0100212 .get_apic_id = flat_get_apic_id,
Ingo Molnarf2f05ee2009-01-28 02:37:01 +0100213 .set_apic_id = set_apic_id,
214 .apic_id_mask = 0xFFu << 24,
215
216 .cpu_mask_to_apicid = flat_cpu_mask_to_apicid,
217 .cpu_mask_to_apicid_and = flat_cpu_mask_to_apicid_and,
218
219 .send_IPI_mask = flat_send_IPI_mask,
220 .send_IPI_mask_allbutself = flat_send_IPI_mask_allbutself,
221 .send_IPI_allbutself = flat_send_IPI_allbutself,
222 .send_IPI_all = flat_send_IPI_all,
223 .send_IPI_self = apic_send_IPI_self,
224
225 .wakeup_cpu = NULL,
Ingo Molnarabfa5842009-01-28 16:15:16 +0100226 .trampoline_phys_low = DEFAULT_TRAMPOLINE_PHYS_LOW,
227 .trampoline_phys_high = DEFAULT_TRAMPOLINE_PHYS_HIGH,
Ingo Molnarf2f05ee2009-01-28 02:37:01 +0100228 .wait_for_init_deassert = NULL,
229 .smp_callin_clear_local_apic = NULL,
230 .store_NMI_vector = NULL,
Ingo Molnarf2f05ee2009-01-28 02:37:01 +0100231 .inquire_remote_apic = NULL,
Yinghai Luc1eeb2d2009-02-16 23:02:14 -0800232
233 .read = native_apic_mem_read,
234 .write = native_apic_mem_write,
235 .icr_read = native_apic_icr_read,
236 .icr_write = native_apic_icr_write,
237 .wait_icr_idle = native_apic_wait_icr_idle,
238 .safe_wait_icr_idle = native_safe_apic_wait_icr_idle,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700239};
Andi Kleenf8d31192005-07-28 21:15:42 -0700240
241/*
242 * Physflat mode is used when there are more than 8 CPUs on a AMD system.
243 * We cannot use logical delivery in this case because the mask
244 * overflows, so use physical mode.
245 */
Marcin Slusarzfae172162008-10-12 11:44:09 +0200246static int physflat_acpi_madt_oem_check(char *oem_id, char *oem_table_id)
Yinghai Lu1b9b89e2008-07-21 22:08:21 -0700247{
248#ifdef CONFIG_ACPI
249 /*
250 * Quirk: some x86_64 machines can only use physical APIC mode
251 * regardless of how many processors are present (x86_64 ES7000
252 * is an example).
253 */
254 if (acpi_gbl_FADT.header.revision > FADT2_REVISION_ID &&
Yinghai Lu02c1df12008-09-04 20:57:11 +0200255 (acpi_gbl_FADT.flags & ACPI_FADT_APIC_PHYSICAL)) {
256 printk(KERN_DEBUG "system APIC only can use physical flat");
Yinghai Lu1b9b89e2008-07-21 22:08:21 -0700257 return 1;
Yinghai Lu02c1df12008-09-04 20:57:11 +0200258 }
Yinghai Lu1b9b89e2008-07-21 22:08:21 -0700259#endif
260
261 return 0;
262}
Andi Kleenf8d31192005-07-28 21:15:42 -0700263
Mike Travisbcda0162008-12-16 17:33:59 -0800264static const struct cpumask *physflat_target_cpus(void)
Andi Kleenf8d31192005-07-28 21:15:42 -0700265{
Mike Travisbcda0162008-12-16 17:33:59 -0800266 return cpu_online_mask;
Andi Kleenf8d31192005-07-28 21:15:42 -0700267}
268
Mike Travisbcda0162008-12-16 17:33:59 -0800269static void physflat_vector_allocation_domain(int cpu, struct cpumask *retmask)
Eric W. Biedermanc7111c132006-10-08 07:47:55 -0600270{
Mike Travisbcda0162008-12-16 17:33:59 -0800271 cpumask_clear(retmask);
272 cpumask_set_cpu(cpu, retmask);
Eric W. Biedermanc7111c132006-10-08 07:47:55 -0600273}
274
Mike Travisbcda0162008-12-16 17:33:59 -0800275static void physflat_send_IPI_mask(const struct cpumask *cpumask, int vector)
Andi Kleenf8d31192005-07-28 21:15:42 -0700276{
Yinghai Lu43f39892009-01-29 19:31:49 -0800277 default_send_IPI_mask_sequence_phys(cpumask, vector);
Andi Kleenf8d31192005-07-28 21:15:42 -0700278}
279
Mike Travisbcda0162008-12-16 17:33:59 -0800280static void physflat_send_IPI_mask_allbutself(const struct cpumask *cpumask,
Mike Travise7986732008-12-16 17:33:52 -0800281 int vector)
282{
Yinghai Lu43f39892009-01-29 19:31:49 -0800283 default_send_IPI_mask_allbutself_phys(cpumask, vector);
Mike Travise7986732008-12-16 17:33:52 -0800284}
285
Andi Kleenf8d31192005-07-28 21:15:42 -0700286static void physflat_send_IPI_allbutself(int vector)
287{
Yinghai Lu43f39892009-01-29 19:31:49 -0800288 default_send_IPI_mask_allbutself_phys(cpu_online_mask, vector);
Andi Kleenf8d31192005-07-28 21:15:42 -0700289}
290
291static void physflat_send_IPI_all(int vector)
292{
Mike Travisbcda0162008-12-16 17:33:59 -0800293 physflat_send_IPI_mask(cpu_online_mask, vector);
Andi Kleenf8d31192005-07-28 21:15:42 -0700294}
295
Mike Travisbcda0162008-12-16 17:33:59 -0800296static unsigned int physflat_cpu_mask_to_apicid(const struct cpumask *cpumask)
Andi Kleenf8d31192005-07-28 21:15:42 -0700297{
298 int cpu;
299
300 /*
301 * We're using fixed IRQ delivery, can only return one phys APIC ID.
302 * May as well be the first.
303 */
Mike Travisbcda0162008-12-16 17:33:59 -0800304 cpu = cpumask_first(cpumask);
Mike Travis1bd9d6b2008-07-18 18:11:30 -0700305 if ((unsigned)cpu < nr_cpu_ids)
Mike Travis71fff5e2007-10-19 20:35:03 +0200306 return per_cpu(x86_cpu_to_apicid, cpu);
Andi Kleenf8d31192005-07-28 21:15:42 -0700307 else
308 return BAD_APICID;
309}
310
Mike Travis6eeb7c52008-12-16 17:33:55 -0800311static unsigned int
312physflat_cpu_mask_to_apicid_and(const struct cpumask *cpumask,
313 const struct cpumask *andmask)
Mike Travis95d313c2008-12-16 17:33:54 -0800314{
315 int cpu;
316
317 /*
318 * We're using fixed IRQ delivery, can only return one phys APIC ID.
319 * May as well be the first.
320 */
Ingo Molnardebccb32009-01-28 15:20:18 +0100321 for_each_cpu_and(cpu, cpumask, andmask) {
Mike Travisa775a382008-12-17 15:21:39 -0800322 if (cpumask_test_cpu(cpu, cpu_online_mask))
323 break;
Ingo Molnardebccb32009-01-28 15:20:18 +0100324 }
Mike Travis6eeb7c52008-12-16 17:33:55 -0800325 if (cpu < nr_cpu_ids)
326 return per_cpu(x86_cpu_to_apicid, cpu);
Ingo Molnardebccb32009-01-28 15:20:18 +0100327
Mike Travis95d313c2008-12-16 17:33:54 -0800328 return BAD_APICID;
329}
330
Andi Kleenf8d31192005-07-28 21:15:42 -0700331struct genapic apic_physflat = {
Ingo Molnar4c3e51e2009-01-28 02:37:01 +0100332
333 .name = "physical flat",
334 .probe = NULL,
335 .acpi_madt_oem_check = physflat_acpi_madt_oem_check,
336 .apic_id_registered = flat_apic_id_registered,
337
Ingo Molnarf8987a12009-01-28 04:02:31 +0100338 .irq_delivery_mode = dest_Fixed,
Ingo Molnar0b06e732009-01-28 05:13:04 +0100339 .irq_dest_mode = 0, /* physical */
Ingo Molnar4c3e51e2009-01-28 02:37:01 +0100340
341 .target_cpus = physflat_target_cpus,
Ingo Molnar08125d32009-01-28 05:08:44 +0100342 .disable_esr = 0,
Ingo Molnarbdb1a9b2009-01-28 05:29:25 +0100343 .dest_logical = 0,
Ingo Molnar4c3e51e2009-01-28 02:37:01 +0100344 .check_apicid_used = NULL,
345 .check_apicid_present = NULL,
346
Ingo Molnar4c3e51e2009-01-28 02:37:01 +0100347 .vector_allocation_domain = physflat_vector_allocation_domain,
348 /* not needed, but shouldn't hurt: */
349 .init_apic_ldr = flat_init_apic_ldr,
350
351 .ioapic_phys_id_map = NULL,
352 .setup_apic_routing = NULL,
353 .multi_timer_check = NULL,
354 .apicid_to_node = NULL,
355 .cpu_to_logical_apicid = NULL,
Ingo Molnara21769a42009-01-28 06:50:47 +0100356 .cpu_present_to_apicid = default_cpu_present_to_apicid,
Ingo Molnar4c3e51e2009-01-28 02:37:01 +0100357 .apicid_to_cpu_present = NULL,
358 .setup_portio_remap = NULL,
Ingo Molnara27a6212009-01-28 12:43:18 +0100359 .check_phys_apicid_present = default_check_phys_apicid_present,
Ingo Molnar4c3e51e2009-01-28 02:37:01 +0100360 .enable_apic_mode = NULL,
Ingo Molnard4c9a9f2009-01-28 13:31:22 +0100361 .phys_pkg_id = flat_phys_pkg_id,
Ingo Molnar4c3e51e2009-01-28 02:37:01 +0100362 .mps_oem_check = NULL,
363
Ingo Molnarca6c8ed2009-01-28 14:08:38 +0100364 .get_apic_id = flat_get_apic_id,
Ingo Molnar4c3e51e2009-01-28 02:37:01 +0100365 .set_apic_id = set_apic_id,
Ingo Molnar5b812722009-01-28 14:59:17 +0100366 .apic_id_mask = 0xFFu << 24,
Ingo Molnar4c3e51e2009-01-28 02:37:01 +0100367
368 .cpu_mask_to_apicid = physflat_cpu_mask_to_apicid,
369 .cpu_mask_to_apicid_and = physflat_cpu_mask_to_apicid_and,
370
371 .send_IPI_mask = physflat_send_IPI_mask,
372 .send_IPI_mask_allbutself = physflat_send_IPI_mask_allbutself,
373 .send_IPI_allbutself = physflat_send_IPI_allbutself,
374 .send_IPI_all = physflat_send_IPI_all,
375 .send_IPI_self = apic_send_IPI_self,
376
377 .wakeup_cpu = NULL,
Ingo Molnarabfa5842009-01-28 16:15:16 +0100378 .trampoline_phys_low = DEFAULT_TRAMPOLINE_PHYS_LOW,
379 .trampoline_phys_high = DEFAULT_TRAMPOLINE_PHYS_HIGH,
Ingo Molnar4c3e51e2009-01-28 02:37:01 +0100380 .wait_for_init_deassert = NULL,
381 .smp_callin_clear_local_apic = NULL,
382 .store_NMI_vector = NULL,
Ingo Molnar4c3e51e2009-01-28 02:37:01 +0100383 .inquire_remote_apic = NULL,
Yinghai Luc1eeb2d2009-02-16 23:02:14 -0800384
385 .read = native_apic_mem_read,
386 .write = native_apic_mem_write,
387 .icr_read = native_apic_icr_read,
388 .icr_write = native_apic_icr_write,
389 .wait_icr_idle = native_apic_wait_icr_idle,
390 .safe_wait_icr_idle = native_safe_apic_wait_icr_idle,
Andi Kleenf8d31192005-07-28 21:15:42 -0700391};