[SPARC64]: Make cpu_present_map available earlier.
authorDavid S. Miller <davem@sunset.davemloft.net>
Sat, 25 Feb 2006 21:39:56 +0000 (13:39 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 27 Feb 2006 03:36:00 +0000 (19:36 -0800)
commit7abea9214585823f7f19d91872d7c6f8874bef9a
treee7861664ee1596ed226725005d6b41a7b0edc447
parent043df59eb3798c094e6ba47136f3d3b34a6791a7
[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>
arch/sparc64/kernel/setup.c
arch/sparc64/kernel/smp.c
include/asm-sparc64/smp.h