Hi Michal, > On 23 May 2022, at 10:13, Michal Orzel <[email protected]> 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 <[email protected]>
With the warning added in the documentation (which is ok to do on commit): Reviewed-by: Bertrand Marquis <[email protected]> Cheers Bertrand
