smp: Use nr_cpus= to set nr_cpu_ids early
On x86, before prefill_possible_map(), nr_cpu_ids will be NR_CPUS aka CONFIG_NR_CPUS. Add nr_cpus= to set nr_cpu_ids. so we can simulate cpus <=8 are installed on normal config. -v2: accordging to Christoph, acpi_numa_init should use nr_cpu_ids in stead of NR_CPUS. -v3: add doc in kernel-parameters.txt according to Andrew. Signed-off-by:Yinghai Lu <yinghai@kernel.org> LKML-Reference: <1265793639-15071-34-git-send-email-yinghai@kernel.org> Acked-by:
Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by:
H. Peter Anvin <hpa@zytor.com> Cc: Tony Luck <tony.luck@intel.com>
Showing
- Documentation/kernel-parameters.txt 6 additions, 0 deletionsDocumentation/kernel-parameters.txt
- arch/ia64/kernel/acpi.c 2 additions, 2 deletionsarch/ia64/kernel/acpi.c
- arch/x86/kernel/smpboot.c 4 additions, 3 deletionsarch/x86/kernel/smpboot.c
- drivers/acpi/numa.c 2 additions, 2 deletionsdrivers/acpi/numa.c
- init/main.c 14 additions, 0 deletionsinit/main.c
Loading
Please register or sign in to comment