Re: [PATCH 02/10] init: move setup of nr_cpu_ids to as early as possible v2
- From: Mike Travis <travis@xxxxxxx>
- Date: Wed, 26 Mar 2008 11:22:14 -0700
Ingo Molnar wrote:
* Mike Travis <travis@xxxxxxx> wrote:
Ingo Molnar wrote:
* Mike Travis <travis@xxxxxxx> wrote:I had this before but I then discovered that an arch would increase
Move the setting of nr_cpu_ids from sched_init() tohm, why not a separate call before setup_per_cpu_areas(), so that we can
setup_per_cpu_areas(), so that it's available as early as possible.
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
(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().
well, then why not do it shortly after setup_per_cpu_areas()? That still
moves it earlier than sched_init() but doesnt export all this code and
complexity toevery setup_per_cpu_areas() implementation. (which clearly
didnt need this complexity before)
Ingo
Ok, will do.
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/
- References:
- [PATCH 00/10] NR_CPUS: third reduction of NR_CPUS memory usage x86-version v2
- From: Mike Travis
- [PATCH 02/10] init: move setup of nr_cpu_ids to as early as possible v2
- From: Mike Travis
- Re: [PATCH 02/10] init: move setup of nr_cpu_ids to as early as possible v2
- From: Ingo Molnar
- Re: [PATCH 02/10] init: move setup of nr_cpu_ids to as early as possible v2
- From: Mike Travis
- Re: [PATCH 02/10] init: move setup of nr_cpu_ids to as early as possible v2
- From: Ingo Molnar
- [PATCH 00/10] NR_CPUS: third reduction of NR_CPUS memory usage x86-version v2
- Prev by Date: emails in jeopardy - yet another dead RBL being poisoned
- Next by Date: Re: [RFC][PATCH] nmi watchdog: handle NMI_IO_APIC on nmi_watchdog
- Previous by thread: Re: [PATCH 02/10] init: move setup of nr_cpu_ids to as early as possible v2
- Next by thread: Re: [PATCH 00/10] NR_CPUS: third reduction of NR_CPUS memory usage x86-version v2
- Index(es):