|
@@ -1793,8 +1793,8 @@ void __init init_apic_mappings(void)
|
|
|
apic_phys = mp_lapic_addr;
|
|
|
|
|
|
/*
|
|
|
- * acpi lapic path already maps that address in
|
|
|
- * acpi_register_lapic_address()
|
|
|
+ * If the system has ACPI MADT tables or MP info, the LAPIC
|
|
|
+ * address is already registered.
|
|
|
*/
|
|
|
if (!acpi_lapic && !smp_found_config)
|
|
|
register_lapic_address(apic_phys);
|
|
@@ -2241,7 +2241,7 @@ void __init apic_set_eoi_write(void (*eoi_write)(u32 reg, u32 v))
|
|
|
static void __init apic_bsp_up_setup(void)
|
|
|
{
|
|
|
#ifdef CONFIG_X86_64
|
|
|
- apic_write(APIC_ID, SET_APIC_ID(boot_cpu_physical_apicid));
|
|
|
+ apic_write(APIC_ID, apic->set_apic_id(boot_cpu_physical_apicid));
|
|
|
#else
|
|
|
/*
|
|
|
* Hack: In case of kdump, after a crash, kernel might be booting
|