Re: [PATCH 04/15] x86, apic: Remove early_init_lapic_mapping

From: Thomas Gleixner
Date: Sun Oct 24 2010 - 05:54:17 EST


On Sat, 23 Oct 2010, Yinghai Lu wrote:

> It is almost the same as smp_register_lapic_addr()
>
> Just need to make smp_read_mpc() call smp_register_lapic_addr when early==1.

> @@ -289,17 +289,13 @@ static int __init smp_read_mpc(struct mpc_table *mpc, unsigned early)
> #ifdef CONFIG_X86_32
> generic_mps_oem_check(mpc, oem, str);
> #endif
> - /* save the local APIC address, it might be non-default */
> + /* Initialize the lapic mapping */
> if (!acpi_lapic)
> - mp_lapic_addr = mpc->lapic;
> + smp_register_lapic_address(mpc->lapic);

How is this restricted to early == 1 ? It's called unconditionally
which is nonsense.

Thanks,

tglx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/