diff options
author | Shaohua Li <shaohua.li@intel.com> | 2006-03-23 05:59:53 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-23 10:38:06 -0500 |
commit | 7c5c1e427b5e83807fd05419d1cf6991b9d87247 (patch) | |
tree | 780820efe1aa9ef26e756c157b14de9d3f84649f /arch/i386/kernel/io_apic.c | |
parent | f2d0d263b51d13efe55f0aae9254b69ba2855f1c (diff) |
[PATCH] x86: deterine xapic using apic version
Checking APIC version instead of CPU family to determine XAPIC. Family 6
CPU could have xapic as well.
Signed-off-by: Shaohua Li<shaohua.li@intel.com>
Cc: Dave Jones <davej@codemonkey.org.uk>
Cc: "Seth, Rohit" <rohit.seth@intel.com>
Cc: Andi Kleen <ak@muc.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/i386/kernel/io_apic.c')
-rw-r--r-- | arch/i386/kernel/io_apic.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/i386/kernel/io_apic.c b/arch/i386/kernel/io_apic.c index 39d9a5fa907e..fd1c60cfd294 100644 --- a/arch/i386/kernel/io_apic.c +++ b/arch/i386/kernel/io_apic.c | |||
@@ -1761,7 +1761,8 @@ static void __init setup_ioapic_ids_from_mpc(void) | |||
1761 | * Don't check I/O APIC IDs for xAPIC systems. They have | 1761 | * Don't check I/O APIC IDs for xAPIC systems. They have |
1762 | * no meaning without the serial APIC bus. | 1762 | * no meaning without the serial APIC bus. |
1763 | */ | 1763 | */ |
1764 | if (!(boot_cpu_data.x86_vendor == X86_VENDOR_INTEL && boot_cpu_data.x86 < 15)) | 1764 | if (!(boot_cpu_data.x86_vendor == X86_VENDOR_INTEL) |
1765 | || APIC_XAPIC(apic_version[boot_cpu_physical_apicid])) | ||
1765 | return; | 1766 | return; |
1766 | /* | 1767 | /* |
1767 | * This is broken; anything with a real cpu count has to | 1768 | * This is broken; anything with a real cpu count has to |