linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] - Increase MAX_APICS for large configs
@ 2008-04-16 16:39 Jack Steiner
  2008-04-16 18:45 ` Ingo Molnar
  2008-04-17 11:07 ` Ingo Molnar
  0 siblings, 2 replies; 8+ messages in thread
From: Jack Steiner @ 2008-04-16 16:39 UTC (permalink / raw)
  To: mingo, tglx; +Cc: linux-mm, linux-kernel

Increase the maximum number of apics when running very large
configurations. This patch has no affect on most systems.

Signed-off-by: Jack Steiner <steiner@sgi.com>

---

I think this area of the code will be substantially changed when
the full x2apic patch is available. In the meantime, this seems
like an acceptible alternative. The patch has no effect on any 32-bit
kernel. It adds ~4k to the size of 64-bit kernels but only if
NR_CPUS > 255.


 include/asm-x86/mpspec_def.h |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

Index: linux/include/asm-x86/mpspec_def.h
===================================================================
--- linux.orig/include/asm-x86/mpspec_def.h	2008-03-29 06:45:28.000000000 -0500
+++ linux/include/asm-x86/mpspec_def.h	2008-03-31 14:17:01.000000000 -0500
@@ -17,10 +17,11 @@
 # define MAX_MPC_ENTRY 1024
 # define MAX_APICS      256
 #else
-/*
- * A maximum of 255 APICs with the current APIC ID architecture.
- */
-# define MAX_APICS 255
+# if NR_CPUS <= 255
+#  define MAX_APICS     255
+# else
+#  define MAX_APICS   32768
+# endif
 #endif
 
 struct intel_mp_floating {

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-04-19  0:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-16 16:39 [PATCH] - Increase MAX_APICS for large configs Jack Steiner
2008-04-16 18:45 ` Ingo Molnar
2008-04-16 19:22   ` Jack Steiner
2008-04-17 11:07 ` Ingo Molnar
2008-04-17 18:02   ` Yinghai Lu
2008-04-18 21:14   ` Jack Steiner
2008-04-18 22:01     ` Yinghai Lu
2008-04-19  0:01       ` Jack Steiner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).