Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1d3fbbf9 authored by Andi Kleen's avatar Andi Kleen Committed by Linus Torvalds
Browse files

[PATCH] x86-64: Don't trust boot_cpu_id in the mptable.



It could be wrong for kexec or other cases. Read it from
the CPU instead.

Signed-off-by: default avatarMurali <muralim@in.ibm.com>
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 8c566ef5
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -622,7 +622,6 @@ void __init init_apic_mappings(void)
	 * Fetch the APIC ID of the BSP in case we have a
	 * Fetch the APIC ID of the BSP in case we have a
	 * default configuration (or the MP table is broken).
	 * default configuration (or the MP table is broken).
	 */
	 */
	if (boot_cpu_id == -1U)
	boot_cpu_id = GET_APIC_ID(apic_read(APIC_ID));
	boot_cpu_id = GET_APIC_ID(apic_read(APIC_ID));


#ifdef CONFIG_X86_IO_APIC
#ifdef CONFIG_X86_IO_APIC