Re: [PATCH 11/12] smp: Create a new function to bringup nonboot cpus online

Thomas Gleixner
2019-11-19T22:42:49Z

On Wed, 30 Oct 2019, Qais Yousef wrote:
> +void smp_bringup_nonboot_cpus(unsigned int setup_max_cpus)
> +{
> + unsigned int cpu;
> +
> + /* FIXME: This should be done in userspace --RR */

This fixme is stale and should just go away.

> + for_each_present_cpu(cpu) {
> + if (num_online_cpus() >= setup_max_cpus)
> + break;
> + if (!cpu_online(cpu))
> + cpu_up(cpu);
> + }
> +}

Thanks,

tglx