diff options
Diffstat (limited to 'arch/x86/include/asm/apic.h')
-rw-r--r-- | arch/x86/include/asm/apic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h index 229d0be184a..bb7d4792584 100644 --- a/arch/x86/include/asm/apic.h +++ b/arch/x86/include/asm/apic.h | |||
@@ -402,7 +402,7 @@ static inline unsigned default_get_apic_id(unsigned long x) | |||
402 | { | 402 | { |
403 | unsigned int ver = GET_APIC_VERSION(apic_read(APIC_LVR)); | 403 | unsigned int ver = GET_APIC_VERSION(apic_read(APIC_LVR)); |
404 | 404 | ||
405 | if (APIC_XAPIC(ver)) | 405 | if (APIC_XAPIC(ver) || boot_cpu_has(X86_FEATURE_EXTD_APICID)) |
406 | return (x >> 24) & 0xFF; | 406 | return (x >> 24) & 0xFF; |
407 | else | 407 | else |
408 | return (x >> 24) & 0x0F; | 408 | return (x >> 24) & 0x0F; |