diff options
Diffstat (limited to 'arch/x86/kernel/genapic_64.c')
-rw-r--r-- | arch/x86/kernel/genapic_64.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/kernel/genapic_64.c b/arch/x86/kernel/genapic_64.c index 820dea5d0ebe..cdc4772d9c87 100644 --- a/arch/x86/kernel/genapic_64.c +++ b/arch/x86/kernel/genapic_64.c | |||
@@ -35,8 +35,10 @@ static struct genapic *apic_probe[] __initdata = { | |||
35 | #ifdef CONFIG_X86_UV | 35 | #ifdef CONFIG_X86_UV |
36 | &apic_x2apic_uv_x, | 36 | &apic_x2apic_uv_x, |
37 | #endif | 37 | #endif |
38 | #ifdef CONFIG_X86_X2APIC | ||
38 | &apic_x2apic_phys, | 39 | &apic_x2apic_phys, |
39 | &apic_x2apic_cluster, | 40 | &apic_x2apic_cluster, |
41 | #endif | ||
40 | &apic_physflat, | 42 | &apic_physflat, |
41 | NULL, | 43 | NULL, |
42 | }; | 44 | }; |
@@ -46,10 +48,12 @@ static struct genapic *apic_probe[] __initdata = { | |||
46 | */ | 48 | */ |
47 | void __init default_setup_apic_routing(void) | 49 | void __init default_setup_apic_routing(void) |
48 | { | 50 | { |
51 | #ifdef CONFIG_X86_X2APIC | ||
49 | if (apic == &apic_x2apic_phys || apic == &apic_x2apic_cluster) { | 52 | if (apic == &apic_x2apic_phys || apic == &apic_x2apic_cluster) { |
50 | if (!intr_remapping_enabled) | 53 | if (!intr_remapping_enabled) |
51 | apic = &apic_flat; | 54 | apic = &apic_flat; |
52 | } | 55 | } |
56 | #endif | ||
53 | 57 | ||
54 | if (apic == &apic_flat) { | 58 | if (apic == &apic_flat) { |
55 | if (max_physical_apicid >= 8) | 59 | if (max_physical_apicid >= 8) |