diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-02-25 21:39:56 (GMT) |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-02-27 03:36:00 (GMT) |
commit | 7abea9214585823f7f19d91872d7c6f8874bef9a (patch) | |
tree | e7861664ee1596ed226725005d6b41a7b0edc447 /arch/sparc64/kernel/setup.c | |
parent | 043df59eb3798c094e6ba47136f3d3b34a6791a7 (diff) | |
download | linux-fsl-qoriq-7abea9214585823f7f19d91872d7c6f8874bef9a.tar.xz |
[SPARC64]: Make cpu_present_map available earlier.
The change to kernel/sched.c's init code to use for_each_cpu()
requires that the cpu_possible_map be setup much earlier.
Set it up via setup_arch(), constrained to NR_CPUS, and later
constrain it to max_cpus in smp_prepare_cpus().
This fixes SMP booting on sparc64.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/setup.c')
-rw-r--r-- | arch/sparc64/kernel/setup.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sparc64/kernel/setup.c b/arch/sparc64/kernel/setup.c index 054461e..158bd31 100644 --- a/arch/sparc64/kernel/setup.c +++ b/arch/sparc64/kernel/setup.c @@ -542,6 +542,8 @@ void __init setup_arch(char **cmdline_p) } #endif + smp_setup_cpu_possible_map(); + paging_init(); } |