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

Commit 5bf97e01 authored by Andi Kleen's avatar Andi Kleen Committed by Linus Torvalds
Browse files

[PATCH] x86-64: Use physflat on Intel for < 8 CPUs with CPU hotplug



This avoids races with the APIC broadcast/mask modes.

Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 27183ebd
Loading
Loading
Loading
Loading
+7 −2
Original line number Original line Diff line number Diff line
@@ -104,9 +104,14 @@ void __init clustered_apic_check(void)
	 * (We don't use lowest priority delivery + HW APIC IRQ steering, so
	 * (We don't use lowest priority delivery + HW APIC IRQ steering, so
	 * can ignore the clustered logical case and go straight to physical.)
	 * can ignore the clustered logical case and go straight to physical.)
	 */
	 */
	if (clusters <= 1 && max_cluster <= 8 && cluster_cnt[0] == max_cluster)
	if (clusters <= 1 && max_cluster <= 8 && cluster_cnt[0] == max_cluster) {
#ifdef CONFIG_HOTPLUG_CPU
		/* Don't use APIC shortcuts in CPU hotplug to avoid races */
		genapic = &apic_physflat;
#else
		genapic = &apic_flat;
		genapic = &apic_flat;
	else
#endif
	} else
		genapic = &apic_cluster;
		genapic = &apic_cluster;


print:
print: