init: set nr_cpu_ids before setup_per_cpu_areas()
authorTejun Heo <tj@kernel.org>
Tue, 21 Jul 2009 08:11:50 +0000 (17:11 +0900)
committerTejun Heo <tj@kernel.org>
Fri, 14 Aug 2009 03:56:54 +0000 (12:56 +0900)
commitd6647bdf98a0de19963de8d5d9698d469ed72097
tree9222f824e53d69212a4ea9ff13e248bdfcc36704
parent64f1607ffbbc772685733ea63e6f7f4183df1b16
init: set nr_cpu_ids before setup_per_cpu_areas()

nr_cpu_ids is dependent only on cpu_possible_map and
setup_per_cpu_areas() already depends on cpu_possible_map and will use
nr_cpu_ids.  Initialize nr_cpu_ids before setting up percpu areas.

Signed-off-by: Tejun Heo <tj@kernel.org>
init/main.c