From: Julien Grall Date: Mon, 11 Apr 2016 13:33:35 +0000 (+0100) Subject: xen/arm: acpi: Fix SMP support when booting with ACPI X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~1288 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=632b7a1e08b4bc3682b36f7956098b0e4aaff272;p=xen.git xen/arm: acpi: Fix SMP support when booting with ACPI The variable enabled_cpus is used to know the number of CPU enabled in the MADT. Currently this variable is used to check the validity of the boot CPU. It will be considered invalid when "enabled_cpus > 1". However, this condition also means that multiple CPUs are present on the system. So secondary will never be brought up. The correct way to check the validity of the boot CPU is to use the variable bootcpu_valid. Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini Reviewed-by: Shannon Zhao --- diff --git a/xen/arch/arm/acpi/boot.c b/xen/arch/arm/acpi/boot.c index 1bba1cf6a5..a952efd7e8 100644 --- a/xen/arch/arm/acpi/boot.c +++ b/xen/arch/arm/acpi/boot.c @@ -149,7 +149,7 @@ void __init acpi_smp_init_cpus(void) return; } - if ( enabled_cpus > 1 ) + if ( !bootcpu_valid ) { printk("MADT missing boot CPU MPIDR, not enabling secondaries\n"); return;