From: David Woodhouse Date: Mon, 5 Oct 2020 08:39:32 +0000 (+0100) Subject: x86/smp: Allow more than 255 CPUs even without interrupt remapping X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=ba2531f58359620b989820341960438be9019ee1;p=users%2Fdwmw2%2Flinux.git x86/smp: Allow more than 255 CPUs even without interrupt remapping Now that external interrupt affinity can be limited to the range of CPUs that can be reached through legacy IOAPIC RTEs and MSI, it is possible to use additional CPUs. Signed-off-by: David Woodhouse --- diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index db410cb009358..66c7cd8efb54c 100644 --- a/arch/x86/kernel/apic/apic.c +++ b/arch/x86/kernel/apic/apic.c @@ -1873,11 +1873,9 @@ static __init void try_to_enable_x2apic(int remap_mode) } /* - * Without IR, all CPUs can be addressed by IOAPIC/MSI only - * in physical mode, and CPUs with an APIC ID that cannnot - * be addressed must not be brought online. + * Without IR, use physical mode to maximise the number of + * CPUs that can be addressed by IOAPIC/MSI. */ - x2apic_set_max_apicid(apic_limit); x2apic_phys = 1; }