diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/include/asm/apic.h | 13 | ||||
-rw-r--r-- | arch/x86/kernel/apic/apic.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/apic/io_apic.c | 4 |
3 files changed, 16 insertions, 3 deletions
diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h index 586b7adb8e53..9a86fb40490d 100644 --- a/arch/x86/include/asm/apic.h +++ b/arch/x86/include/asm/apic.h | |||
@@ -66,6 +66,19 @@ static inline void default_inquire_remote_apic(int apicid) | |||
66 | } | 66 | } |
67 | 67 | ||
68 | /* | 68 | /* |
69 | * With 82489DX we can't rely on apic feature bit | ||
70 | * retrieved via cpuid but still have to deal with | ||
71 | * such an apic chip so we assume that SMP configuration | ||
72 | * is found from MP table (64bit case uses ACPI mostly | ||
73 | * which set smp presence flag as well so we are safe | ||
74 | * to use this helper too). | ||
75 | */ | ||
76 | static inline bool apic_from_smp_config(void) | ||
77 | { | ||
78 | return smp_found_config && !disable_apic; | ||
79 | } | ||
80 | |||
81 | /* | ||
69 | * Basic functions accessing APICs. | 82 | * Basic functions accessing APICs. |
70 | */ | 83 | */ |
71 | #ifdef CONFIG_PARAVIRT | 84 | #ifdef CONFIG_PARAVIRT |
diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index 072aea6c630b..2d59dfa29785 100644 --- a/arch/x86/kernel/apic/apic.c +++ b/arch/x86/kernel/apic/apic.c | |||
@@ -978,7 +978,7 @@ void lapic_shutdown(void) | |||
978 | { | 978 | { |
979 | unsigned long flags; | 979 | unsigned long flags; |
980 | 980 | ||
981 | if (!cpu_has_apic) | 981 | if (!cpu_has_apic && !apic_from_smp_config()) |
982 | return; | 982 | return; |
983 | 983 | ||
984 | local_irq_save(flags); | 984 | local_irq_save(flags); |
diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c index 3c8f9e75d038..593c4f8a8bb8 100644 --- a/arch/x86/kernel/apic/io_apic.c +++ b/arch/x86/kernel/apic/io_apic.c | |||
@@ -1863,7 +1863,7 @@ __apicdebuginit(int) print_all_ICs(void) | |||
1863 | print_PIC(); | 1863 | print_PIC(); |
1864 | 1864 | ||
1865 | /* don't print out if apic is not there */ | 1865 | /* don't print out if apic is not there */ |
1866 | if (!cpu_has_apic || disable_apic) | 1866 | if (!cpu_has_apic && !apic_from_smp_config()) |
1867 | return 0; | 1867 | return 0; |
1868 | 1868 | ||
1869 | print_all_local_APICs(); | 1869 | print_all_local_APICs(); |
@@ -1981,7 +1981,7 @@ void disable_IO_APIC(void) | |||
1981 | /* | 1981 | /* |
1982 | * Use virtual wire A mode when interrupt remapping is enabled. | 1982 | * Use virtual wire A mode when interrupt remapping is enabled. |
1983 | */ | 1983 | */ |
1984 | if (cpu_has_apic) | 1984 | if (cpu_has_apic || apic_from_smp_config()) |
1985 | disconnect_bsp_APIC(!intr_remapping_enabled && | 1985 | disconnect_bsp_APIC(!intr_remapping_enabled && |
1986 | ioapic_i8259.pin != -1); | 1986 | ioapic_i8259.pin != -1); |
1987 | } | 1987 | } |