Re: [PATCH 02/10] init: move setup of nr_cpu_ids to as early as possiblev2

From: Mike Travis
Date: Wed Mar 26 2008 - 11:44:15 EST


Ingo Molnar wrote:
> * Mike Travis <travis@xxxxxxx> wrote:
>
>> Move the setting of nr_cpu_ids from sched_init() to
>> setup_per_cpu_areas(), so that it's available as early as possible.
>
> hm, why not a separate call before setup_per_cpu_areas(), so that we can
> avoid spreading this from generic kernel into a bunch of architectures
> that happen to have their own version of setup_per_cpu_areas():
>
>> 7 files changed, 43 insertions(+), 15 deletions(-)
>
> Ingo

I had this before but I then discovered that an arch would increase
(and possible decrease) it's number of possible cpus in setup_per_cpu_areas().
So I figured that setting nr_cpu_ids (and the cpumask_of_cpu map) should
be a side effect of setup_per_cpu_areas().

Thanks,
Mike
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/