aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/kernel/setup.c
diff options
context:
space:
mode:
authorholt@sgi.com <holt@sgi.com>2008-04-03 16:17:13 -0400
committerTony Luck <tony.luck@intel.com>2008-04-08 16:51:35 -0400
commit2c6e6db41f01b6b4eb98809350827c9678996698 (patch)
tree00438344c0ad599c1301db2abe32a4c2ee89b607 /arch/ia64/kernel/setup.c
parent41bd26d67c41e325c6b9e56aadfe9dad8af9a565 (diff)
[IA64] Minimize per_cpu reservations.
This attached patch significantly shrinks boot memory allocation on ia64. It does this by not allocating per_cpu areas for cpus that can never exist. In the case where acpi does not have any numa node description of the cpus, I defaulted to assigning the first 32 round-robin on the known nodes.. For the !CONFIG_ACPI I used for_each_possible_cpu(). Signed-off-by: Robin Holt <holt@sgi.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/kernel/setup.c')
-rw-r--r--arch/ia64/kernel/setup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/ia64/kernel/setup.c b/arch/ia64/kernel/setup.c
index 4aa9eaea76c3..6206541f9e87 100644
--- a/arch/ia64/kernel/setup.c
+++ b/arch/ia64/kernel/setup.c
@@ -493,6 +493,8 @@ setup_arch (char **cmdline_p)
493 acpi_table_init(); 493 acpi_table_init();
494# ifdef CONFIG_ACPI_NUMA 494# ifdef CONFIG_ACPI_NUMA
495 acpi_numa_init(); 495 acpi_numa_init();
496 per_cpu_scan_finalize((cpus_weight(early_cpu_possible_map) == 0 ?
497 32 : cpus_weight(early_cpu_possible_map)), additional_cpus);
496# endif 498# endif
497#else 499#else
498# ifdef CONFIG_SMP 500# ifdef CONFIG_SMP