Hi,
On 30/05/2022 10:09, Bertrand Marquis wrote:
On 23 May 2022, at 10:13, Michal Orzel <michal.or...@arm.com> wrote:
Introduce a command line parameter "maxcpus" on Arm to allow adjusting
the number of CPUs to activate. Currently the limit is defined by the
config option CONFIG_NR_CPUS. Such parameter already exists on x86.
Define a parameter "maxcpus" and a corresponding static variable
max_cpus in Arm smpboot.c. Modify function smp_get_max_cpus to take
max_cpus as a limit and to return proper unsigned int instead of int.
Take the opportunity to remove redundant variable cpus from start_xen
function and to directly assign the return value from smp_get_max_cpus
to nr_cpu_ids (global variable in Xen used to store the number of CPUs
actually activated).
Signed-off-by: Michal Orzel <michal.or...@arm.com>
With the warning added in the documentation (which is ok to do on commit):
Reviewed-by: Bertrand Marquis <bertrand.marq...@arm.com>
I have committed it with the update in the documentation.
Cheers,
--
Julien Grall