aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm64/kernel/smp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c
index 298dd745651e..490db85dec23 100644
--- a/arch/arm64/kernel/smp.c
+++ b/arch/arm64/kernel/smp.c
@@ -693,6 +693,13 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
693 smp_store_cpu_info(smp_processor_id()); 693 smp_store_cpu_info(smp_processor_id());
694 694
695 /* 695 /*
696 * If UP is mandated by "nosmp" (which implies "maxcpus=0"), don't set
697 * secondary CPUs present.
698 */
699 if (max_cpus == 0)
700 return;
701
702 /*
696 * Initialise the present map (which describes the set of CPUs 703 * Initialise the present map (which describes the set of CPUs
697 * actually populated at the present time) and release the 704 * actually populated at the present time) and release the
698 * secondaries from the bootloader. 705 * secondaries from the bootloader.