aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/apic_32.c
diff options
context:
space:
mode:
authorJack Steiner <steiner@sgi.com>2008-06-19 22:51:05 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-08 06:23:28 -0400
commitb6df1b8bc1250191cfee15627697111c1cbda53f (patch)
treeb5991eafa0f5f4e155921bd10d4f44696c271b8d /arch/x86/kernel/apic_32.c
parentd400524affeb84bdfc2b00cd561fbfb8c09dadd7 (diff)
x86: fix stack overflow for large values of MAX_APICS
physid_mask_of_physid() causes a huge stack (12k) to be created if the number of APICS is large. Replace physid_mask_of_physid() with a new function that does not create large stacks. This is a problem only on large x86_64 systems. this paves the way to increase MAX_APICS. Signed-off-by: Jack Steiner <steiner@sgi.com> Cc: linux-mm@kvack.org Cc: mingo@elte.hu Cc: tglx@linutronix.de Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/apic_32.c')
-rw-r--r--arch/x86/kernel/apic_32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/apic_32.c b/arch/x86/kernel/apic_32.c
index d5767cb19d56..3f13a1aa07cd 100644
--- a/arch/x86/kernel/apic_32.c
+++ b/arch/x86/kernel/apic_32.c
@@ -1269,7 +1269,7 @@ int __init APIC_init_uniprocessor(void)
1269#ifdef CONFIG_CRASH_DUMP 1269#ifdef CONFIG_CRASH_DUMP
1270 boot_cpu_physical_apicid = GET_APIC_ID(read_apic_id()); 1270 boot_cpu_physical_apicid = GET_APIC_ID(read_apic_id());
1271#endif 1271#endif
1272 phys_cpu_present_map = physid_mask_of_physid(boot_cpu_physical_apicid); 1272 physid_set_mask_of_physid(boot_cpu_physical_apicid, &phys_cpu_present_map);
1273 1273
1274 setup_local_APIC(); 1274 setup_local_APIC();
1275 1275