提交 296cb951 编写于 作者: C Cyrill Gorcunov 提交者: Ingo Molnar

x86: apic - unify sync_Arb_IDs

Signed-off-by: NCyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 c93baa1a
...@@ -915,8 +915,7 @@ void __init sync_Arb_IDs(void) ...@@ -915,8 +915,7 @@ void __init sync_Arb_IDs(void)
apic_wait_icr_idle(); apic_wait_icr_idle();
apic_printk(APIC_DEBUG, "Synchronizing Arb IDs.\n"); apic_printk(APIC_DEBUG, "Synchronizing Arb IDs.\n");
apic_write(APIC_ICR, apic_write(APIC_ICR, APIC_DEST_ALLINC | APIC_INT_LEVELTRIG | APIC_DM_INIT);
APIC_DEST_ALLINC | APIC_INT_LEVELTRIG | APIC_DM_INIT);
} }
/* /*
......
...@@ -742,8 +742,11 @@ int __init verify_local_APIC(void) ...@@ -742,8 +742,11 @@ int __init verify_local_APIC(void)
*/ */
void __init sync_Arb_IDs(void) void __init sync_Arb_IDs(void)
{ {
/* Unsupported on P4 - see Intel Dev. Manual Vol. 3, Ch. 8.6.1 */ /*
if (modern_apic()) * Unsupported on P4 - see Intel Dev. Manual Vol. 3, Ch. 8.6.1 And not
* needed on AMD.
*/
if (modern_apic() || boot_cpu_data.x86_vendor == X86_VENDOR_AMD)
return; return;
/* /*
...@@ -752,8 +755,7 @@ void __init sync_Arb_IDs(void) ...@@ -752,8 +755,7 @@ void __init sync_Arb_IDs(void)
apic_wait_icr_idle(); apic_wait_icr_idle();
apic_printk(APIC_DEBUG, "Synchronizing Arb IDs.\n"); apic_printk(APIC_DEBUG, "Synchronizing Arb IDs.\n");
apic_write(APIC_ICR, APIC_DEST_ALLINC | APIC_INT_LEVELTRIG apic_write(APIC_ICR, APIC_DEST_ALLINC | APIC_INT_LEVELTRIG | APIC_DM_INIT);
| APIC_DM_INIT);
} }
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册