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

From: Thomas Gleixner
Date: Tue Nov 19 2019 - 17:42:50 EST


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