diff options
Diffstat (limited to 'arch/x86/kernel/genapic_64.c')
-rw-r--r-- | arch/x86/kernel/genapic_64.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/arch/x86/kernel/genapic_64.c b/arch/x86/kernel/genapic_64.c index 792e21ba1a81..3940d8161f8b 100644 --- a/arch/x86/kernel/genapic_64.c +++ b/arch/x86/kernel/genapic_64.c | |||
@@ -30,6 +30,15 @@ DEFINE_PER_CPU(int, x2apic_extra_bits); | |||
30 | 30 | ||
31 | struct genapic __read_mostly *genapic = &apic_flat; | 31 | struct genapic __read_mostly *genapic = &apic_flat; |
32 | 32 | ||
33 | static int x2apic_phys = 0; | ||
34 | |||
35 | static int set_x2apic_phys_mode(char *arg) | ||
36 | { | ||
37 | x2apic_phys = 1; | ||
38 | return 0; | ||
39 | } | ||
40 | early_param("x2apic_phys", set_x2apic_phys_mode); | ||
41 | |||
33 | static enum uv_system_type uv_system_type; | 42 | static enum uv_system_type uv_system_type; |
34 | 43 | ||
35 | /* | 44 | /* |
@@ -39,9 +48,12 @@ void __init setup_apic_routing(void) | |||
39 | { | 48 | { |
40 | if (uv_system_type == UV_NON_UNIQUE_APIC) | 49 | if (uv_system_type == UV_NON_UNIQUE_APIC) |
41 | genapic = &apic_x2apic_uv_x; | 50 | genapic = &apic_x2apic_uv_x; |
42 | else if (cpu_has_x2apic && intr_remapping_enabled) | 51 | else if (cpu_has_x2apic && intr_remapping_enabled) { |
43 | genapic = &apic_x2apic_cluster; | 52 | if (x2apic_phys) |
44 | else | 53 | genapic = &apic_x2apic_phys; |
54 | else | ||
55 | genapic = &apic_x2apic_cluster; | ||
56 | } else | ||
45 | #ifdef CONFIG_ACPI | 57 | #ifdef CONFIG_ACPI |
46 | /* | 58 | /* |
47 | * Quirk: some x86_64 machines can only use physical APIC mode | 59 | * Quirk: some x86_64 machines can only use physical APIC mode |