On Mon, Jul 22, 2019 at 11:41:29AM +0200, Thomas Gleixner wrote:
> On Wed, 10 Jul 2019, Pingfan Liu wrote:
> >
> > +static inline bool maxcpus_allowed(unsigned int cpu)
> > +{
> > + /* maxcpus only takes effect during system bootup */
> > + if (smp_boot_done)
> > + return true;
> >
On Wed, 10 Jul 2019, Pingfan Liu wrote:
>
> +static inline bool maxcpus_allowed(unsigned int cpu)
> +{
> + /* maxcpus only takes effect during system bootup */
> + if (smp_boot_done)
> + return true;
> + if (num_online_cpus() < setup_max_cpus)
> + return true;
2 matches
Mail list logo