diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2008-08-15 07:51:23 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-08-15 07:51:23 -0400 |
commit | 296cb9511dcc3895fda84d0cd5b411bd926e4bb3 (patch) | |
tree | b3d3d14289917e862c82748bb1f5ebeaf3a8ccb2 /arch/x86/kernel | |
parent | c93baa1ae51cdba25a5f5ad37b2348e700e75daf (diff) |
x86: apic - unify sync_Arb_IDs
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r-- | arch/x86/kernel/apic_32.c | 3 | ||||
-rw-r--r-- | arch/x86/kernel/apic_64.c | 10 |
2 files changed, 7 insertions, 6 deletions
diff --git a/arch/x86/kernel/apic_32.c b/arch/x86/kernel/apic_32.c index 7ef7c782a42d..d07488993ee7 100644 --- a/arch/x86/kernel/apic_32.c +++ b/arch/x86/kernel/apic_32.c | |||
@@ -915,8 +915,7 @@ void __init sync_Arb_IDs(void) | |||
915 | apic_wait_icr_idle(); | 915 | apic_wait_icr_idle(); |
916 | 916 | ||
917 | apic_printk(APIC_DEBUG, "Synchronizing Arb IDs.\n"); | 917 | apic_printk(APIC_DEBUG, "Synchronizing Arb IDs.\n"); |
918 | apic_write(APIC_ICR, | 918 | apic_write(APIC_ICR, APIC_DEST_ALLINC | APIC_INT_LEVELTRIG | APIC_DM_INIT); |
919 | APIC_DEST_ALLINC | APIC_INT_LEVELTRIG | APIC_DM_INIT); | ||
920 | } | 919 | } |
921 | 920 | ||
922 | /* | 921 | /* |
diff --git a/arch/x86/kernel/apic_64.c b/arch/x86/kernel/apic_64.c index ac399d0f65c0..41aff3460635 100644 --- a/arch/x86/kernel/apic_64.c +++ b/arch/x86/kernel/apic_64.c | |||
@@ -742,8 +742,11 @@ int __init verify_local_APIC(void) | |||
742 | */ | 742 | */ |
743 | void __init sync_Arb_IDs(void) | 743 | void __init sync_Arb_IDs(void) |
744 | { | 744 | { |
745 | /* Unsupported on P4 - see Intel Dev. Manual Vol. 3, Ch. 8.6.1 */ | 745 | /* |
746 | if (modern_apic()) | 746 | * Unsupported on P4 - see Intel Dev. Manual Vol. 3, Ch. 8.6.1 And not |
747 | * needed on AMD. | ||
748 | */ | ||
749 | if (modern_apic() || boot_cpu_data.x86_vendor == X86_VENDOR_AMD) | ||
747 | return; | 750 | return; |
748 | 751 | ||
749 | /* | 752 | /* |
@@ -752,8 +755,7 @@ void __init sync_Arb_IDs(void) | |||
752 | apic_wait_icr_idle(); | 755 | apic_wait_icr_idle(); |
753 | 756 | ||
754 | apic_printk(APIC_DEBUG, "Synchronizing Arb IDs.\n"); | 757 | apic_printk(APIC_DEBUG, "Synchronizing Arb IDs.\n"); |
755 | apic_write(APIC_ICR, APIC_DEST_ALLINC | APIC_INT_LEVELTRIG | 758 | apic_write(APIC_ICR, APIC_DEST_ALLINC | APIC_INT_LEVELTRIG | APIC_DM_INIT); |
756 | | APIC_DM_INIT); | ||
757 | } | 759 | } |
758 | 760 | ||
759 | /* | 761 | /* |