diff options
| -rw-r--r-- | arch/x86/include/asm/io_apic.h | 1 | ||||
| -rw-r--r-- | arch/x86/kernel/apic/io_apic.c | 28 |
2 files changed, 17 insertions, 12 deletions
diff --git a/arch/x86/include/asm/io_apic.h b/arch/x86/include/asm/io_apic.h index 240a0a5e2b31..d7d46cb53e52 100644 --- a/arch/x86/include/asm/io_apic.h +++ b/arch/x86/include/asm/io_apic.h | |||
| @@ -169,6 +169,7 @@ extern void mask_IO_APIC_setup(struct IO_APIC_route_entry **ioapic_entries); | |||
| 169 | extern int restore_IO_APIC_setup(struct IO_APIC_route_entry **ioapic_entries); | 169 | extern int restore_IO_APIC_setup(struct IO_APIC_route_entry **ioapic_entries); |
| 170 | 170 | ||
| 171 | extern void setup_ioapic_ids_from_mpc(void); | 171 | extern void setup_ioapic_ids_from_mpc(void); |
| 172 | extern void setup_ioapic_ids_from_mpc_nocheck(void); | ||
| 172 | 173 | ||
| 173 | struct mp_ioapic_gsi{ | 174 | struct mp_ioapic_gsi{ |
| 174 | u32 gsi_base; | 175 | u32 gsi_base; |
diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c index ce3c6fb4f357..4f026a632c95 100644 --- a/arch/x86/kernel/apic/io_apic.c +++ b/arch/x86/kernel/apic/io_apic.c | |||
| @@ -1934,8 +1934,7 @@ void disable_IO_APIC(void) | |||
| 1934 | * | 1934 | * |
| 1935 | * by Matt Domsch <Matt_Domsch@dell.com> Tue Dec 21 12:25:05 CST 1999 | 1935 | * by Matt Domsch <Matt_Domsch@dell.com> Tue Dec 21 12:25:05 CST 1999 |
| 1936 | */ | 1936 | */ |
| 1937 | 1937 | void __init setup_ioapic_ids_from_mpc_nocheck(void) | |
| 1938 | void __init setup_ioapic_ids_from_mpc(void) | ||
| 1939 | { | 1938 | { |
| 1940 | union IO_APIC_reg_00 reg_00; | 1939 | union IO_APIC_reg_00 reg_00; |
| 1941 | physid_mask_t phys_id_present_map; | 1940 | physid_mask_t phys_id_present_map; |
| @@ -1944,15 +1943,6 @@ void __init setup_ioapic_ids_from_mpc(void) | |||
| 1944 | unsigned char old_id; | 1943 | unsigned char old_id; |
| 1945 | unsigned long flags; | 1944 | unsigned long flags; |
| 1946 | 1945 | ||
| 1947 | if (acpi_ioapic) | ||
| 1948 | return; | ||
| 1949 | /* | ||
| 1950 | * Don't check I/O APIC IDs for xAPIC systems. They have | ||
| 1951 | * no meaning without the serial APIC bus. | ||
| 1952 | */ | ||
| 1953 | if (!(boot_cpu_data.x86_vendor == X86_VENDOR_INTEL) | ||
| 1954 | || APIC_XAPIC(apic_version[boot_cpu_physical_apicid])) | ||
| 1955 | return; | ||
| 1956 | /* | 1946 | /* |
| 1957 | * This is broken; anything with a real cpu count has to | 1947 | * This is broken; anything with a real cpu count has to |
| 1958 | * circumvent this idiocy regardless. | 1948 | * circumvent this idiocy regardless. |
| @@ -2006,7 +1996,6 @@ void __init setup_ioapic_ids_from_mpc(void) | |||
| 2006 | physids_or(phys_id_present_map, phys_id_present_map, tmp); | 1996 | physids_or(phys_id_present_map, phys_id_present_map, tmp); |
| 2007 | } | 1997 | } |
| 2008 | 1998 | ||
| 2009 | |||
| 2010 | /* | 1999 | /* |
| 2011 | * We need to adjust the IRQ routing table | 2000 | * We need to adjust the IRQ routing table |
| 2012 | * if the ID changed. | 2001 | * if the ID changed. |
| @@ -2042,6 +2031,21 @@ void __init setup_ioapic_ids_from_mpc(void) | |||
| 2042 | apic_printk(APIC_VERBOSE, " ok.\n"); | 2031 | apic_printk(APIC_VERBOSE, " ok.\n"); |
| 2043 | } | 2032 | } |
| 2044 | } | 2033 | } |
| 2034 | |||
| 2035 | void __init setup_ioapic_ids_from_mpc(void) | ||
| 2036 | { | ||
| 2037 | |||
| 2038 | if (acpi_ioapic) | ||
| 2039 | return; | ||
| 2040 | /* | ||
| 2041 | * Don't check I/O APIC IDs for xAPIC systems. They have | ||
| 2042 | * no meaning without the serial APIC bus. | ||
| 2043 | */ | ||
| 2044 | if (!(boot_cpu_data.x86_vendor == X86_VENDOR_INTEL) | ||
| 2045 | || APIC_XAPIC(apic_version[boot_cpu_physical_apicid])) | ||
| 2046 | return; | ||
| 2047 | setup_ioapic_ids_from_mpc_nocheck(); | ||
| 2048 | } | ||
| 2045 | #endif | 2049 | #endif |
| 2046 | 2050 | ||
| 2047 | int no_timer_check __initdata; | 2051 | int no_timer_check __initdata; |
