init: move setup of nr_cpu_ids to as early as possible
authorMike Travis <travis@sgi.com>
Wed, 26 Mar 2008 21:23:48 +0000 (14:23 -0700)
committerIngo Molnar <mingo@elte.hu>
Sat, 19 Apr 2008 17:44:59 +0000 (19:44 +0200)
commite0982e90cd1ecf59818b137386b7f63debded9cc
tree3cdbfa8a69dca4a9c9596d61bffa32f1b676f09d
parent4bdbaad33d0f4d0e9818a38a825f5b75c0296a28
init: move setup of nr_cpu_ids to as early as possible

Move the setting of nr_cpu_ids from sched_init() to start_kernel()
so that it's available as early as possible.

Note that an arch has the option of setting it even earlier if need be,
but it should not result in a different value than the setup_nr_cpu_ids()
function.

Signed-off-by: Mike Travis <travis@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
init/main.c
kernel/sched.c