Re: [PATCH] smp: force all cpu to boot once under maxcpus option

2019-07-24 Thread Pingfan Liu
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; > >

Re: [PATCH] smp: force all cpu to boot once under maxcpus option

2019-07-22 Thread Thomas Gleixner
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;