Re: [PATCH] x86, apic: Do not increment disabled_cpus from generic_processor_info.

Rakib Mullick
2011-01-09T17:24:59Z

On Sun, Jan 9, 2011 at 3:39 PM, Ingo Molnar <mingo@elte.hu> wrote:
>
> Hm, what effects does this have in practice? smpboot.c uses disabled_cpus as a value
> to calculate limits - why has this bug not caused some misbehavior somewhere? (or if
> it has caused misbehavior, what is that?)

If I'm not wrong, smpboot.c tries to get the possible cpu map by
calculating disabled_cpus and num_processors. When we pass nr_cpus=n,
which is less than no. of CPUs available, we can't put more CPUs
online. So, no of cpu we detect at startup is okay. Or am I missing
anything?

thanks,
rakib

>
> Thanks,
>
>        Ingo
>