Re: [PATCH] arm64: allow NR_CPUS=1 for non-SMP and adjust default accordingly
From: Catalin Marinas
Date: Fri Jul 25 2025 - 04:36:14 EST
On Thu, Jul 24, 2025 at 10:26:39PM +0530, Suchit Karunakaran wrote:
> The arm64 Kconfig for NR_CPUS previously required a minimum of 2 CPUs.
> This patch changes the minimum allowed CPUs to 1, enabling single-core
> non-SMP configurations.
Do you have such single-core system?
> config NR_CPUS
> - int "Maximum number of CPUs (2-4096)"
> - range 2 4096
> - default "512"
> + int "Maximum number of CPUs (1-4096)"
> + range 1 4096
> + default "1" if !SMP
> + default "512" if SMP
It's been some time since we forced CONFIG_SMP always on for arm64.
--
Catalin