[RFC][PATCH] powerpc: respect how command line nr_cpus is set

Benjamin Herrenschmidt benh at kernel.crashing.org
Fri May 6 08:29:23 EST 2011


> From Documentation/kernel-parameters.txt:
> 
>         nr_cpus=        [SMP] Maximum number of processors that an SMP kernel
>                         could support.  nr_cpus=n : n >= 1 limits the kernel to
>                         supporting 'n' processors. Later in runtime you can not
>                         use hotplug cpu feature to put more cpu back to online.
>                         just like you compile the kernel NR_CPUS=n
> 
> Which makes me think we should have max_cpus be an absolute limit.

Ok, looks like I've been confusing nr_cpus= vs. max_cpus= or something
like that.

I'll have a look at your patch later today.

Cheers,
Ben.




More information about the Linuxppc-dev mailing list