From: Jack Steiner Date: Fri, 20 Jun 2008 02:51:05 +0000 (-0500) Subject: x86: fix stack overflow for large values of MAX_APICS X-Git-Tag: v2.6.27-rc1~1106^2~244^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6df1b8bc1250191cfee15627697111c1cbda53f;p=pandora-kernel.git 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 Cc: linux-mm@kvack.org Cc: mingo@elte.hu Cc: tglx@linutronix.de Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed