diff options
Diffstat (limited to 'arch/x86/kernel/genx2apic_cluster.c')
-rw-r--r-- | arch/x86/kernel/genx2apic_cluster.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/x86/kernel/genx2apic_cluster.c b/arch/x86/kernel/genx2apic_cluster.c index 40bc0140d89f..ef3f3182d50a 100644 --- a/arch/x86/kernel/genx2apic_cluster.c +++ b/arch/x86/kernel/genx2apic_cluster.c | |||
@@ -4,12 +4,22 @@ | |||
4 | #include <linux/kernel.h> | 4 | #include <linux/kernel.h> |
5 | #include <linux/ctype.h> | 5 | #include <linux/ctype.h> |
6 | #include <linux/init.h> | 6 | #include <linux/init.h> |
7 | #include <linux/dmar.h> | ||
8 | |||
7 | #include <asm/smp.h> | 9 | #include <asm/smp.h> |
8 | #include <asm/ipi.h> | 10 | #include <asm/ipi.h> |
9 | #include <asm/genapic.h> | 11 | #include <asm/genapic.h> |
10 | 12 | ||
11 | DEFINE_PER_CPU(u32, x86_cpu_to_logical_apicid); | 13 | DEFINE_PER_CPU(u32, x86_cpu_to_logical_apicid); |
12 | 14 | ||
15 | static int __init x2apic_acpi_madt_oem_check(char *oem_id, char *oem_table_id) | ||
16 | { | ||
17 | if (cpu_has_x2apic && intr_remapping_enabled) | ||
18 | return 1; | ||
19 | |||
20 | return 0; | ||
21 | } | ||
22 | |||
13 | /* Start with all IRQs pointing to boot CPU. IRQ balancing will shift them. */ | 23 | /* Start with all IRQs pointing to boot CPU. IRQ balancing will shift them. */ |
14 | 24 | ||
15 | static cpumask_t x2apic_target_cpus(void) | 25 | static cpumask_t x2apic_target_cpus(void) |
@@ -135,6 +145,7 @@ static void init_x2apic_ldr(void) | |||
135 | 145 | ||
136 | struct genapic apic_x2apic_cluster = { | 146 | struct genapic apic_x2apic_cluster = { |
137 | .name = "cluster x2apic", | 147 | .name = "cluster x2apic", |
148 | .acpi_madt_oem_check = x2apic_acpi_madt_oem_check, | ||
138 | .int_delivery_mode = dest_LowestPrio, | 149 | .int_delivery_mode = dest_LowestPrio, |
139 | .int_dest_mode = (APIC_DEST_LOGICAL != 0), | 150 | .int_dest_mode = (APIC_DEST_LOGICAL != 0), |
140 | .target_cpus = x2apic_target_cpus, | 151 | .target_cpus = x2apic_target_cpus, |